[{"label":"Latest (V1)","version":"latest"}]
horizon-cloud-nextgen

Get Access Token

Description

Gets the access token to authenticate the user.

Request

Request

URL

URL


post
https://cloud.vmwarehorizon.com/auth/v1/token
Copy

Request Body

Request Body

AuthRequest of mimetype application/json Required
{
    "code": "oiuoidaspdp-sad!sdr",
    "force": false,
    "idpTenantDomain": "abccompany",
    "redirectUri": "redirect-uri"
}
string
code Required

Code value


boolean
force Required

Force update of multiple Azure tenant to CSP org mapping


string
idpTenantDomain Required

IDP tenant Domain/Tenant alias


string
redirectUri Required

url to redirect to


string
codeVerifier Optional

Code verifier for code challenge used in auth url

Response

Response

Response Body

Response Body

200 OK

Returns AuthResponse of type */*
{
    "access_token": "access-token",
    "id_token": "id_token",
    "refresh_token": "refresh_token",
    "user_id": "user_id"
}
string
access_token Optional

Access token


string
id_token Optional

Id token


string
refresh_token Optional

Refresh token


string
user_id Optional

User Id

No error details were provided in the OpenAPI specification.

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"code":"oiuoidaspdp-sad!sdr","codeVerifier":"code-verifier","force":false,"idpTenantDomain":"abccompany","redirectUri":"redirect-uri"}' https://cloud.vmwarehorizon.com/auth/v1/token


Feedback

Was this page helpful?