IProvider Interface
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.
Authentication provider to expose more states around the authentication process for graph controls.
public interface IProvider
type IProvider = interface
Public Interface IProvider
- Derived
Properties
| CurrentAccountId |
Gets the id of the currently signed in user account. |
| State |
Gets the current login state of the provider. |
Methods
| AuthenticateRequestAsync(HttpRequestMessage) |
Authenticate an outgoing request. |
| GetTokenAsync(Boolean) |
Retrieve a token for the authenticated user. |
| 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. |
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. |