Get Access Token With Authorization Request

Get Access Token With Authorization Request

Exchange authorization code, refresh token or client_credentials to user access token.

Request
URI
POST
https://{api_host}//cava-s-182-041.eng.vmware.com/csp/gateway/am/api/auth/authorize
COPY
Query Parameters
string
client_id
Optional

The client ID when grant_type is set to client_credentials

string
client_secret
Optional

The client secret when grant_type is set to client_credentials

string
code
Optional

The authorization code when grant_type is set to authorization_code

string
grant_type
Required

The type of authorization to be performed.

Possible values are : refresh_token, client_credentials, authorization_code,
string
orgId
Optional

When grant_type is set to client_credentials if this parameter is set the issued token will be limited to the specified organization.

string
redirect_uri
Optional

The URI to which a redirect will be performed upon successful authorization.

string
refresh_token
Optional

The refresh token when grant_type is set to refresh_token

string
scope
Optional

Currently not supported. Present for CSP compatibility.

string
state
Required

A transparent state of the request.

Header Parameters
string
authorization
Optional

authorization


Responses
200

OK

Returns AccessToken of type(s) */*
{
    "access_token": "string",
    "expires_in": 0,
    "id_token": "string",
    "refresh_token": "string",
    "scope": "string",
    "token_type": "string"
}
string
access_token
Optional

Access Token

integer As int64 As int64
expires_in
Optional

Access Token Expiration

string
id_token
Optional

ID Token

string
refresh_token
Optional

Refresh Token

string
scope
Optional

Scope

string
token_type
Optional

Token Type