-api-id | -api-type |
---|---|
M:Windows.Security.Authentication.Web.Core.WebAuthenticationCoreManager.RequestTokenAsync(Windows.Security.Authentication.Web.Core.WebTokenRequest,Windows.Security.Credentials.WebAccount) |
winrt method |
Asynchronously requests a token from a web account provider. If necessary, the user is prompted to enter their credentials.
The web token request.
The web account for the request.
An asynchronous request operation. On successful completion, contains a WebTokenRequestResult object representing the result of the web token request.
This method cannot be called from desktop apps or from background threads of UWP apps. For an equivalent of this method for desktop apps, see IWebAuthenticationCoreManagerInterop::RequestTokenWithWebAccountForWindowAsync.
Web account management code sample
RequestTokenAsync(WebTokenRequest)
IWebAuthenticationCoreManagerInterop::RequestTokenWithWebAccountForWindowAsync