Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 1.91 KB

webauthenticationcoremanager_requesttokenasync_1777535178.md

File metadata and controls

36 lines (22 loc) · 1.91 KB
-api-id -api-type
M:Windows.Security.Authentication.Web.Core.WebAuthenticationCoreManager.RequestTokenAsync(Windows.Security.Authentication.Web.Core.WebTokenRequest)
winrt method

Windows.Security.Authentication.Web.Core.WebAuthenticationCoreManager.RequestTokenAsync

-description

Asynchronously requests a token from a web account provider. If necessary, the user is prompted to enter their credentials.

-parameters

-param request

The web token request.

-returns

An asynchronous request operation. On successful completion, contains a WebTokenRequestResult object representing the result of the web token request.

-remarks

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::RequestTokenForWindowAsync.

-examples

-see-also

Web account management code sample, RequestTokenAsync(WebTokenRequest, WebAccount), IWebAuthenticationCoreManagerInterop::RequestTokenForWindowAsync, IWebAuthenticationCoreManagerInterop interface