WebTokenRequestResult
WebTokenRequestResult
WebTokenRequestResult
WebTokenRequestResult
Class
Definition
Represents the results of a web token request to an identity provider.
public : sealed class WebTokenRequestResult : IWebTokenRequestResultpublic sealed class WebTokenRequestResult : IWebTokenRequestResultPublic NotInheritable Class WebTokenRequestResult Implements IWebTokenRequestResult// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Properties
ResponseData ResponseData ResponseData ResponseData
Gets the response data from the web token provider.
public : IVectorView<WebTokenResponse> ResponseData { get; }public IReadOnlyList<WebTokenResponse> ResponseData { get; }Public ReadOnly Property ResponseData As IReadOnlyList<WebTokenResponse>// You can use this property in JavaScript.
- Value
- IVectorView<WebTokenResponse> IReadOnlyList<WebTokenResponse> IReadOnlyList<WebTokenResponse> IReadOnlyList<WebTokenResponse>
The response from the web token provider.
- See Also
ResponseError ResponseError ResponseError ResponseError
Gets the error returned by the web provider, if any.
public : WebProviderError ResponseError { get; }public WebProviderError ResponseError { get; }Public ReadOnly Property ResponseError As WebProviderError// You can use this property in JavaScript.
The error returned by the web provider.
- See Also
ResponseStatus ResponseStatus ResponseStatus ResponseStatus
Gets the status of the request.
public : WebTokenRequestStatus ResponseStatus { get; }public WebTokenRequestStatus ResponseStatus { get; }Public ReadOnly Property ResponseStatus As WebTokenRequestStatus// You can use this property in JavaScript.
The status of the request.
- See Also
Methods
InvalidateCacheAsync() InvalidateCacheAsync() InvalidateCacheAsync() InvalidateCacheAsync()
Invalidates the current cached WebTokenRequestResult. See Remarks for proper usage.
public : IAsyncAction InvalidateCacheAsync()public IAsyncAction InvalidateCacheAsync()Public Function InvalidateCacheAsync() As IAsyncAction// You can use this method in JavaScript.
This method does not return an object or value.
Remarks
While the default behavior of the Web Account Manager is to automatically remove cached tokens that become stale, there are some scenarios in which a token will stay cached even when it is not valid. If the WebTokenRequestResult indicates that the token was rejected by the server, then this method should be called to remove that token from the WAM cache and a new token should be requested.
- See Also