OAuth2Manager 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.
A static class that provides methods to initiate an authorization request, complete an authorization request, and request an access token for a user through a client app.
Note
Client app refers to the OAuth 2.0 registered application. User refers to the end-user who is the resource owner and is authorizing the client application to access their resources.
public ref class OAuth2Manager abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Security.Authentication.OAuth.OAuthContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class OAuth2Manager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Security.Authentication.OAuth.OAuthContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class OAuth2Manager
Public Class OAuth2Manager
- Inheritance
- Attributes
Examples
See Implement OAuth functionality in Windows apps for examples of how to use these APIs.
Methods
CompleteAuthRequest(Uri) |
Completes an auth request through a redirect URI. |
RequestAuthWithParamsAsync(WindowId, Uri, AuthRequestParams) |
Initiates an auth request for a user in the user's default browser through a client app. |
RequestTokenAsync(Uri, TokenRequestParams, ClientAuthentication) |
Initiates an access token request with client authentication. |
RequestTokenAsync(Uri, TokenRequestParams) |
Initiates an access token request. |