Class ClientCredentialsAuthorizer
Definition
- Assembly:
- Tizen.Account.OAuth2.dll
The ClientCredentialsAuthorizer is used to obtain access tokens using Client Credentials Grant flow as described at https://tools.ietf.org/html/rfc6749#section-4.4
C#
Copy
[Obsolete]
public class ClientCredentialsAuthorizer : Authorizer, IDisposable
- Inheritance
- Implements
-
System.
IDisposable
Constructors
Declaration
C#
Copy
[Obsolete]
public ClientCredentialsAuthorizer()
Methods
View Source
AuthorizeAsync(AuthorizationRequest)
Authorization not supported through this API for this flow.
Declaration
C#
Copy
[Obsolete]
public Task<AuthorizationResponse> AuthorizeAsync(AuthorizationRequest request)
Parameters
Type | Name | Description |
---|---|---|
Authorization |
request |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><Authorization |
Exceptions
Type | Condition |
---|---|
System. |
Thrown when the operation is not supported |
View Source
GetAccessTokenAsync(TokenRequest)
Retrieves access token using client credentials. The authroization request parameters should be as defined in https://tools.ietf.org/html/rfc6749#section-4.4.2
Declaration
C#
Copy
[Obsolete]
public Task<TokenResponse> GetAccessTokenAsync(TokenRequest request)
Parameters
Type | Name | Description |
---|---|---|
Token |
request | The token request Client |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><Token |
The response containing access token. |
Exceptions
Type | Condition |
---|---|
System. |
Thrown when method failed due to invalid argumets |
OAuth2Exception | Thrown when method fails due to server error |
View Source
RefreshAccessTokenAsync(RefreshTokenRequest)
Refreshing access token is not supported in this flow.
Declaration
C#
Copy
[Obsolete]
public override Task<TokenResponse> RefreshAccessTokenAsync(RefreshTokenRequest request)
Parameters
Type | Name | Description |
---|---|---|
Refresh |
request |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><Token |
Overrides
Exceptions
Type | Condition |
---|---|
System. |
Thrown when the operation is not supported |
Implements
System.IDisposable