WebAuthenticationCoreManager WebAuthenticationCoreManager WebAuthenticationCoreManager WebAuthenticationCoreManager Class

Definition

Contains core methods for obtaining tokens from web account providers.

public : static class WebAuthenticationCoreManagerpublic static class WebAuthenticationCoreManagerPublic Static Class WebAuthenticationCoreManager// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Methods

CreateWebAccountMonitor(IIterable) CreateWebAccountMonitor(IIterable) CreateWebAccountMonitor(IIterable) CreateWebAccountMonitor(IIterable)

Creates a web account monitor to watch given accounts.

public : static WebAccountMonitor CreateWebAccountMonitor(IIterable<WebAccount> webAccounts)public static WebAccountMonitor CreateWebAccountMonitor(IEnumerable<WebAccount> webAccounts)Public Static Function CreateWebAccountMonitor(webAccounts As IEnumerable<WebAccount>) As WebAccountMonitor// You can use this method in JavaScript.
Parameters
webAccounts
IIterable<WebAccount> IEnumerable<WebAccount> IEnumerable<WebAccount> IEnumerable<WebAccount>

The web accounts to monitor.

Returns

A web account monitor watching the given accounts.

Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

FindAccountAsync(WebAccountProvider, String) FindAccountAsync(WebAccountProvider, String) FindAccountAsync(WebAccountProvider, String) FindAccountAsync(WebAccountProvider, String)

Finds a web account asynchronously.

public : static IAsyncOperation<WebAccount> FindAccountAsync(WebAccountProvider provider, PlatForm::String webAccountId)public static IAsyncOperation<WebAccount> FindAccountAsync(WebAccountProvider provider, String webAccountId)Public Static Function FindAccountAsync(provider As WebAccountProvider, webAccountId As String) As IAsyncOperation( Of WebAccount )// You can use this method in JavaScript.
Parameters
provider
WebAccountProvider WebAccountProvider WebAccountProvider WebAccountProvider

The web account provider for the web account.

webAccountId
PlatForm::String String String String

The Id of the web account.

Returns

When this method completes successfully, it returns the found web account.

See Also

FindAccountProviderAsync(String) FindAccountProviderAsync(String) FindAccountProviderAsync(String) FindAccountProviderAsync(String)

Finds a web account provider asynchronously with one input.

public : static IAsyncOperation<WebAccountProvider> FindAccountProviderAsync(PlatForm::String webAccountProviderId)public static IAsyncOperation<WebAccountProvider> FindAccountProviderAsync(String webAccountProviderId)Public Static Function FindAccountProviderAsync(webAccountProviderId As String) As IAsyncOperation( Of WebAccountProvider )// You can use this method in JavaScript.
Parameters
webAccountProviderId
PlatForm::String String String String

The Id of the web account provider to find.

Returns
See Also

FindAccountProviderAsync(String, String) FindAccountProviderAsync(String, String) FindAccountProviderAsync(String, String) FindAccountProviderAsync(String, String)

Finds a web account provider asynchronously with two inputs.

public : static IAsyncOperation<WebAccountProvider> FindAccountProviderAsync(PlatForm::String webAccountProviderId, PlatForm::String authority)public static IAsyncOperation<WebAccountProvider> FindAccountProviderAsync(String webAccountProviderId, String authority)Public Static Function FindAccountProviderAsync(webAccountProviderId As String, authority As String) As IAsyncOperation( Of WebAccountProvider )// You can use this method in JavaScript.
Parameters
webAccountProviderId
PlatForm::String String String String

The Id of the web account provider to find.

authority
PlatForm::String String String String

The authority of the web account provider to find.

Important

When using "https://login.windows.local" as the webAccountProviderId value, you should not specify an authority value. Use the single-parameter overload of this method instead.

Returns
See Also

FindAccountProviderAsync(String, String, User) FindAccountProviderAsync(String, String, User) FindAccountProviderAsync(String, String, User) FindAccountProviderAsync(String, String, User)

Finds a web account provider asynchronously with three inputs.

public : static IAsyncOperation<WebAccountProvider> FindAccountProviderAsync(PlatForm::String webAccountProviderId, PlatForm::String authority, User user)public static IAsyncOperation<WebAccountProvider> FindAccountProviderAsync(String webAccountProviderId, String authority, User user)Public Static Function FindAccountProviderAsync(webAccountProviderId As String, authority As String, user As User) As IAsyncOperation( Of WebAccountProvider )// You can use this method in JavaScript.
Parameters
webAccountProviderId
PlatForm::String String String String

The Id of the web account provider to find.

authority
PlatForm::String String String String

The authority of the web account provider to find.

user
User User User User

The user associated with the web account provider to find.

Important

When using "https://login.windows.local" as the webAccountProviderId value, you should not specify an authority value. Use the single-parameter overload of this method instead.

Returns
See Also

GetTokenSilentlyAsync(WebTokenRequest) GetTokenSilentlyAsync(WebTokenRequest) GetTokenSilentlyAsync(WebTokenRequest) GetTokenSilentlyAsync(WebTokenRequest)

Attempts to get a token without showing any UI using one input. The user will never be prompted to enter their credentials.

public : static IAsyncOperation<WebTokenRequestResult> GetTokenSilentlyAsync(WebTokenRequest request)public static IAsyncOperation<WebTokenRequestResult> GetTokenSilentlyAsync(WebTokenRequest request)Public Static Function GetTokenSilentlyAsync(request As WebTokenRequest) As IAsyncOperation( Of WebTokenRequestResult )// You can use this method in JavaScript.
Parameters
Returns

Remarks

Unlike RequestTokenAsync, you may call this method from background threads.

See Also

GetTokenSilentlyAsync(WebTokenRequest, WebAccount) GetTokenSilentlyAsync(WebTokenRequest, WebAccount) GetTokenSilentlyAsync(WebTokenRequest, WebAccount) GetTokenSilentlyAsync(WebTokenRequest, WebAccount)

Attempts to get a token without showing any UI using two inputs. The user will never be prompted to enter their credentials.

public : static IAsyncOperation<WebTokenRequestResult> GetTokenSilentlyAsync(WebTokenRequest request, WebAccount webAccount)public static IAsyncOperation<WebTokenRequestResult> GetTokenSilentlyAsync(WebTokenRequest request, WebAccount webAccount)Public Static Function GetTokenSilentlyAsync(request As WebTokenRequest, webAccount As WebAccount) As IAsyncOperation( Of WebTokenRequestResult )// You can use this method in JavaScript.
Parameters
webAccount
WebAccount WebAccount WebAccount WebAccount

The web account.

Returns
See Also

RequestTokenAsync(WebTokenRequest) RequestTokenAsync(WebTokenRequest) RequestTokenAsync(WebTokenRequest) RequestTokenAsync(WebTokenRequest)

Requests a token from a web account provider asynchronously. If needed, the user may be prompted to enter their credentials.

public : static IAsyncOperation<WebTokenRequestResult> RequestTokenAsync(WebTokenRequest request)public static IAsyncOperation<WebTokenRequestResult> RequestTokenAsync(WebTokenRequest request)Public Static Function RequestTokenAsync(request As WebTokenRequest) As IAsyncOperation( Of WebTokenRequestResult )// You can use this method in JavaScript.
Parameters
Returns

Remarks

This method cannot be called from background threads.

See Also

RequestTokenAsync(WebTokenRequest, WebAccount) RequestTokenAsync(WebTokenRequest, WebAccount) RequestTokenAsync(WebTokenRequest, WebAccount) RequestTokenAsync(WebTokenRequest, WebAccount)

Requests a token from a web account provider asynchronously. If needed, the user may be prompted to enter their credentials.

public : static IAsyncOperation<WebTokenRequestResult> RequestTokenAsync(WebTokenRequest request, WebAccount webAccount)public static IAsyncOperation<WebTokenRequestResult> RequestTokenAsync(WebTokenRequest request, WebAccount webAccount)Public Static Function RequestTokenAsync(request As WebTokenRequest, webAccount As WebAccount) As IAsyncOperation( Of WebTokenRequestResult )// You can use this method in JavaScript.
Parameters
webAccount
WebAccount WebAccount WebAccount WebAccount

The web account for the request.

Returns
See Also

See Also