Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 2.09 KB

webauthenticationcoremanager_requesttokenasync_695504446.md

File metadata and controls

39 lines (27 loc) · 2.09 KB
-api-id -api-type
M:Windows.Security.Authentication.Web.Core.WebAuthenticationCoreManager.RequestTokenAsync(Windows.Security.Authentication.Web.Core.WebTokenRequest,Windows.Security.Credentials.WebAccount)
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.

-param webAccount

The web account for the 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::RequestTokenWithWebAccountForWindowAsync.

-examples

-see-also

Web account management code sample

RequestTokenAsync(WebTokenRequest)

IWebAuthenticationCoreManagerInterop::RequestTokenWithWebAccountForWindowAsync

IWebAuthenticationCoreManagerInterop interface