Help Instance Help

Authorization code request

Returns Authorization Code after redirecting User to authorization prompt to enter login credentials.

Endpoint

Request Type

URL

POST

https://{EnvironmentURL}/{Client_tenant}/connect/authorize

Headers

Parameter

Type

Mandatory

Description

x-api-version

string

Yes

Requested API version – 1.0

Content-Type

string

Yes

application/x-www-form-urlencoded

Request parameters

Parameter

Type

Mandatory

Description

response_type

string

Yes

Type of response = code

client_id

string

Yes

Your Client_ID

state

string

Yes

Randomly generated unique value to prevent cross-site request forgery attacks. The state also is used to encode information about the user's state in the app before the authentication request occurred

scope

string

Yes

Additional parameter to standard PKCE flow. You should add the following scopes to request:

  • openid

  • all_api

  • offline_access

  • user_data

Scopes must be presented as string with urlencoded spaces between values

redirect_uri

string

Yes

URI to redirection in your application where Authorization Code will be sent

Responses

302 Found – Success

No body

Last modified: 19 января 2024