Class ClientCredentialsAuthorizer

    Definition

    Namespace:
    Tizen.Account.OAuth2
    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

    public class ClientCredentialsAuthorizer : Authorizer
    Inheritance
    object
    Authorizer
    ClientCredentialsAuthorizer

    Constructors

    View Source

    ClientCredentialsAuthorizer()

    The constructor

    Declaration
    public ClientCredentialsAuthorizer()

    Methods

    View Source

    AuthorizeAsync(AuthorizationRequest)

    Authorization not supported through this API for this flow.

    Declaration
    public Task<AuthorizationResponse> AuthorizeAsync(AuthorizationRequest request)
    Parameters
    Type Name Description
    AuthorizationRequest request
    Returns
    Type Description
    Task<><AuthorizationResponse>
    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
    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
    OAuth2Exception

    Thrown when method fails due to server error

    View Source

    RefreshAccessTokenAsync(RefreshTokenRequest)

    Refreshing access token is not supported in this flow.

    Declaration
    public override Task<TokenResponse> RefreshAccessTokenAsync(RefreshTokenRequest request)
    Parameters
    Type Name Description
    RefreshTokenRequest request
    Returns
    Type Description
    Task<><TokenResponse>
    Overrides
    Authorizer.RefreshAccessTokenAsync(RefreshTokenRequest)

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX