Skip to main content

Obtain Third-party Authorization Information

POST 

/auth/v1/provider/token

resource_exhausted User requests exceed the frequency limit invalid_client The client does not exist failed_precondition Failed to obtain third-party information

Request

Body

required
    provider_id string
    provider_redirect_uri string
    provider_code Either provider_code or one of provider_access_token/provider_id_token can be selected. By default, if provider_access_token is not empty, the provider_access_token mechanism will be used. (string)
    provider_access_token string
    provider_id_token string
    provider_params object
    property name* string

Responses

A successful response.

Schema
    provider_token If auto-registration is not enabled, returns provider_token for further processing, e.g., via mobile number (string)
    expires_in int32
    provider_profile object
    provider_id string
    sub Primary ID (string)
    name string
    picture string
    email string
    phone_number string
    gender string
    locale string
    url string
    groups string[]
    organization_id string
    departments string[]
    sub_id sub_id If SLO is required, sub_id may need to be returned. Reference: urn:oasis:names:tc:SAML:attribute:subject-id (string)
    token Token returned by provider, e.g., refresh_token in OAuth mode (string)
    at_hash at hash of provider profile (string)
    meta object
    property name* string
    raw Raw information from third party (string)
    provider string
Loading...