WindowsProvider Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An authentication provider based on the native AccountsSettingsPane in Windows.
public class WindowsProvider : CommunityToolkit.Authentication.BaseProvider
type WindowsProvider = class
inherit BaseProvider
Public Class WindowsProvider
Inherits BaseProvider
- Inheritance
Constructors
| WindowsProvider(String[], Nullable<WebAccountProviderConfig>, Nullable<AccountsSettingsPaneConfig>, Boolean, DispatcherQueue) |
Initializes a new instance of the WindowsProvider class. |
Properties
| AccountsSettingsPaneConfig |
Gets configuration values for the AccountsSettingsPane. |
| CurrentAccountId |
Gets the id of the currently signed in user account. |
| DispatcherQueue |
Gets or sets which DispatcherQueue is used to dispatch UI updates. |
| RedirectUri |
Gets the redirect uri value based on the current app callback uri. Used for configuring the Azure app registration. |
| Scopes |
Gets the list of scopes to pre-authorize during authentication. |
| Settings |
Gets a cache of important values for the signed in user. |
| State |
Gets or sets the current state of the provider. (Inherited from BaseProvider) |
| WebAccountProviderConfig |
Gets the configuration values for determining the available web account providers. |
Methods
| AddSdkVersion(HttpRequestMessage) |
Append the Sdk version to the request headers. (Inherited from BaseProvider) |
| AuthenticateRequestAsync(HttpRequestMessage) |
Authenticate an outgoing request. |
| GetTokenAsync(Boolean) |
Retrieve a token for the authenticated user. |
| ShowAccountManagementPaneAsync() |
Display AccountSettingsPane for the management of logged-in users. |
| SignInAsync() |
Sign in the user. |
| SignOutAsync() |
Sign out the user. |
| TrySilentSignInAsync() |
Tries to check if the user is logged in without prompting to login. |
Events
| StateChanged |
Event called when the login State changes. (Inherited from BaseProvider) |
Extension Methods
| GetBetaClient(IProvider) |
Gets a GraphServiceClient instance based on the current GlobalProvider, but configured for the beta endpoint. |
| GetClient(IProvider) |
Gets a GraphServiceClient instance based on the current GlobalProvider. |