Class ClientCredentialsAuthorizer
Obsolete
Definition
- Namespace:
- Tizen.Account.OAuth2
- Assembly:
- Tizen.Account.OAuth2.dll
- API Level:
- 3
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
[Obsolete]
public class ClientCredentialsAuthorizer : Authorizer, IDisposable
- Inheritance
- Implements
Constructors
View SourceClientCredentialsAuthorizer()
Obsolete
The constructor
Declaration
[Obsolete]
public ClientCredentialsAuthorizer()
API Level: 3
Methods
View SourceAuthorizeAsync(AuthorizationRequest)
Obsolete
Authorization not supported through this API for this flow.
Declaration
[Obsolete]
public Task<AuthorizationResponse> AuthorizeAsync(AuthorizationRequest request)
Parameters
Type | Name | Description |
---|---|---|
AuthorizationRequest | request |
Returns
Type | Description |
---|---|
Task<AuthorizationResponse> |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown when the operation is not supported |
API Level: 3
View SourceGetAccessTokenAsync(TokenRequest)
Obsolete
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
[Obsolete]
public Task<TokenResponse> GetAccessTokenAsync(TokenRequest request)
Parameters
Type | Name | Description |
---|---|---|
TokenRequest | request | The token request ClientCredentialsTokenRequest |
Returns
Type | Description |
---|---|
Task<TokenResponse> | The response containing access token. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when method failed due to invalid argumets |
OAuth2Exception | Thrown when method fails due to server error |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/internet
View SourceRefreshAccessTokenAsync(RefreshTokenRequest)
Obsolete
Refreshing access token is not supported in this flow.
Declaration
[Obsolete]
public override Task<TokenResponse> RefreshAccessTokenAsync(RefreshTokenRequest request)
Parameters
Type | Name | Description |
---|---|---|
RefreshTokenRequest | request |
Returns
Type | Description |
---|---|
Task<TokenResponse> |
Overrides
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown when the operation is not supported |