跳到主要内容

SSO Token Exchange

POST 

/bv/account/v2alpha1/sso:exchange-token

This API exchanges an authorization code for an access token and a refresh token.


Required field(s):

  • code
  • code_verifier

Request

Body

required
    idp_type stringrequired

    Possible values: [IDP_TYPE_AZURE_AD]

    Required. The type of the identity provider (e.g. Azure ad, etc.).

    This specifies which IDP (Identity Provider) the user wants to use for SSO.

    domain stringrequired

    Required. The domain of the account.

    This is used to identify the organization for the SSO process.

    code stringrequired

    Required. The authorization code received from the identity provider.

    This code is returned by the IDP after the user successfully authenticates.

    code_verifier stringrequired

    Required. The code verifier for PKCE (Proof Key for Code Exchange).

    This is the original random string used to generate the code_challenge in the authorization request. Example: code_verifier = "random-generated-string"

Responses

A successful response.

Schema
    access_token The access token issued by the identity provider. Expired time: 1 hour (string)
    refresh_token The refresh token issued by the identity provider. Expired time: 30 days (string)
    expires_in int32

    The expiration time of the access token in seconds.

    token_type The token type (e.g. Basic,Bearer) Default: Bearer (string)
Loading...