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://sc2-10-185-6-200.eng.vmware.com//csp/gateway/am/api/auth/authorize
COPY
Header Parameters
string
authorization
Optional

authorization


Request Body
AuthorizationRequest of type(s) application/json
Optional
{
    "grant_type": "string",
    "refresh_token": "string",
    "code": "string",
    "state": "string",
    "redirect_uri": "string",
    "client_id": "string",
    "client_secret": "string",
    "scope": "string",
    "orgId": "string"
}
string
grant_type
Required

The type of authorization to be performed.

string
refresh_token
Optional

The refresh token when grant_type is set to refresh_token

string
code
Optional

The authorization code when grant_type is set to authorization_code

string
state
Required

A transparent state of the request.

string
redirect_uri
Optional

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

string
client_id
Optional

The client ID when grant_type is set to client_credentials. Will be ignored if the Authorization header is set.

string
client_secret
Optional

The client secret when grant_type is set to client_credentials. Will be ignored if the Authorization header is set.

string
scope
Optional

Currently not supported. Present for CSP compatibility.

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.

Responses
200

default response

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

Scope

string
access_token
Optional

Access Token

string
refresh_token
Optional

Refresh Token

string
id_token
Optional

ID Token

string
token_type
Optional

Token Type

integer As int64 As int64
expires_in
Optional

Access Token Expiration