[{"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

authRequest

{
	"code": "oiuoidaspdp-sad!sdr",
	"force": false,
	"redirectUri": "redirect-uri"
}
string
code Required

Code value


boolean
force Required

Force update of multiple Azure tenant to CSP org mapping


string
redirectUri Required

url to redirect to


string
idpTenantDomain Optional

IDP tenant Domain/Tenant alias

Authentication

Authentication

This operation uses the following authentication methods.

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","force":false,"idpTenantDomain":"abccompany","redirectUri":"redirect-uri"}' https://cloud.vmwarehorizon.com/auth/v1/token
Vendor Extensions

Vendor Extensions

This operation contains the following vendor extensions defined in the spec:
x-codegen-request-body-name: authRequest


Feedback

Was this page helpful?