oauth
Download Specresponse_type
string
client_id
string
state
string
redirect_uri
string
user_agent
string
oidc_id
string
scope
string
Response
Temporary redirect
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
No schema
Bad request
{
"error": "invalid_request",
"error_description": "string"
}
Unauthorized
{
"error": "invalid_request",
"error_description": "string"
}
Not found
{
"error": "invalid_request",
"error_description": "string"
}
Internal server error
{
"error": "invalid_request",
"error_description": "string"
}
error
string
required
Standard error code denoting the error type
- Enum
-
- invalid_request
- invalid_client
- invalid_grant
- unauthorized_client
- unsupported_grant_type
- invalid_scope
error_description
string
Textual, human readable error message
error
string
required
Standard error code denoting the error type
- Enum
-
- invalid_request
- invalid_client
- invalid_grant
- unauthorized_client
- unsupported_grant_type
- invalid_scope
error_description
string
Textual, human readable error message
error
string
required
Standard error code denoting the error type
- Enum
-
- invalid_request
- invalid_client
- invalid_grant
- unauthorized_client
- unsupported_grant_type
- invalid_scope
error_description
string
Textual, human readable error message
error
string
required
Standard error code denoting the error type
- Enum
-
- invalid_request
- invalid_client
- invalid_grant
- unauthorized_client
- unsupported_grant_type
- invalid_scope
error_description
string
Textual, human readable error message
client_id
string
OAuth2.0 client ID
- Example
- "privx-ui"
grant_type
string
Grant type
- Enum
-
- authorization_code
- refresh_token
- password
- client_credentials
refresh_token
string
Optional. Used if grant_type is refresh_token
- Example
- "J3O4AOSWDNLPLMMWL2ESFJ4GQHSNBXS7SBXOAGYD7BPMCHTJ4ZE7TJQNMDKPGDPHNNI5KY4P3HPF3GNV2RZOIW7RFQZIOZ5CNAKVIZGDFY4VAGHL3HHP447AW2BVZG5NN2GCV6XGDM5P434AOMMMNNTQHGHUNQFYNBOBB5BW7QISG77GVAIPQQA7UP5I7ES3KXLXNRZUDDEMFO6MVRXV7OOK5YSV4QFDRTSOOGGHE63R5G5T3EUM5LPPVCCSWUZ42YZCQOTVLPFED4WPEENQPMGMTPZ4VSRU2RIQ"
code
string
Optional. Used if grant_type is authorization_code
- Example
- "ZWRHCAS2QGV6CVB6C4JHDSKEGEJLE6CGNJVHMQWC7PQZOOCE7IXEYLHZPTMMQ6OHSDBLH6SFRQPEQL5CKP2MZNF42QYJL6DBKMPRLEA3JW4ZD5DIKZJF7YYRIYDAXH4NXZSVSXFHHAMHI6Z6OHXY32S2MWZUASWJHSTOHJBWTS7SGUDGTDMSWNHTHKFR4GKVUUJIX3L6KRBUYGUE77MZGN7PTAJNP7WNDUIOJPKK7M5WATRL6QIGMHREIE5DXGDI6UOCRLBQBSJAW7MTOCAR2VS4CXRAS5FOUMH6R76B4LXISQYW4SE55BVI5DAZLTTHUFKEYAZOLQX6Y6Q52YXTTNYKTZRCKTDEMVYZDDTEBYVBBW4V2EKPJ2QDYPXGQ2KWLUBVAHXNI2BWM7AODHB5AFY"
redirect_uri
string
Optional. Used if grant_type is authorization_code
- Example
- "/privx/oauth-callback"
username
string
Optional. Used if grant_type is password
password
string
Optional. Used if grant_type is password
scope
string
Optional. Used if grant_type is password.
basicAuth
Access Token Request https://tools.ietf.org/html/rfc6749
Response
Successful response, returns JSON object
{
"access_token": "eyJhbGciOiJFZDI1NTE5IiwidHlwIjoiSldUIn0=.eyJhdWQiOiJwcml2eC11aSIsImV4cCI6MTUyMjgzNjAxNSwiaWF0IjoxNTIyODM1NzE1LCJpc3MiOiJvYW0uYXV0aC5zc2guY29tIiwiZG9tYWluIjoicHJpdngtdWkiLCJwZXJtaXNzaW9ucyI6InByaXZ4LWFkbWluLHByaXZ4LXVzZXIiLCJzZXNzaW9uaWQiOiI4MWI2NjNiOC02Zjc5LTQ3ZjctNzY0Yy03MTdmMGEwNjk0MjYiLCJ1c2VyaWQiOiJhOGMyNjM5NS0zMmZjLTQxMjctYmRiNy04MDllZThhMjAzZjIifQ==.JM6RrCYg9djDnoJtRkAMAKvkM2Zm9dYuxgN1zZA7G1-XTCc4Iub_y6lKdhHnoRm_hUwW6QtRWm8IlAUayqs4Aw",
"token_type": "bearer",
"expires_in": 300,
"refresh_token": "I7SNNZH4GLZNCOIV7D6DKULPFXBWBD4TTZJ5KQDCO3N2W7D562WSE5QWSNQFO7OTG5VRGPDU73SEUR5NVTXLPNDV6TQD6OH6V7S3JNWNFSPZ3ARSSJKJO6MSPVHRY3OFFXN4YLRDZPODQCDW6UL27PLR2YWUOUHF5WBIKZVDR4H5R4VQSPPKBBJC4GWJ3XAPWZL4DBVT6YH6PVBWMOKJHDO66577OBJVOOKWAVY7JEFQTTZNRTNDXPHI42AGHMCNWHFBSG63PXSMO67YQJBC55CHAQQI3XS3ZUCQ",
"scope": "privx-user connections-manual"
}
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Bad request
{
"error": "invalid_request",
"error_description": "string"
}
Internal server error
{
"error": "invalid_request",
"error_description": "string"
}
error
string
required
Standard error code denoting the error type
- Enum
-
- invalid_request
- invalid_client
- invalid_grant
- unauthorized_client
- unsupported_grant_type
- invalid_scope
error_description
string
Textual, human readable error message
error
string
required
Standard error code denoting the error type
- Enum
-
- invalid_request
- invalid_client
- invalid_grant
- unauthorized_client
- unsupported_grant_type
- invalid_scope
error_description
string
Textual, human readable error message
access_token
string
OAuth2 access token
- Example
- "eyJhbGciOiJFZDI1NTE5IiwidHlwIjoiSldUIn0=.eyJhdWQiOiJwcml2eC11aSIsImV4cCI6MTUyMjgzNjAxNSwiaWF0IjoxNTIyODM1NzE1LCJpc3MiOiJvYW0uYXV0aC5zc2guY29tIiwiZG9tYWluIjoicHJpdngtdWkiLCJwZXJtaXNzaW9ucyI6InByaXZ4LWFkbWluLHByaXZ4LXVzZXIiLCJzZXNzaW9uaWQiOiI4MWI2NjNiOC02Zjc5LTQ3ZjctNzY0Yy03MTdmMGEwNjk0MjYiLCJ1c2VyaWQiOiJhOGMyNjM5NS0zMmZjLTQxMjctYmRiNy04MDllZThhMjAzZjIifQ==.JM6RrCYg9djDnoJtRkAMAKvkM2Zm9dYuxgN1zZA7G1-XTCc4Iub_y6lKdhHnoRm_hUwW6QtRWm8IlAUayqs4Aw"
token_type
string
Token type
- Example
- "bearer"
expires_in
int
Token expiration time in seconds.
- Example
- 300
refresh_token
string
Refresh token.
- Example
- "I7SNNZH4GLZNCOIV7D6DKULPFXBWBD4TTZJ5KQDCO3N2W7D562WSE5QWSNQFO7OTG5VRGPDU73SEUR5NVTXLPNDV6TQD6OH6V7S3JNWNFSPZ3ARSSJKJO6MSPVHRY3OFFXN4YLRDZPODQCDW6UL27PLR2YWUOUHF5WBIKZVDR4H5R4VQSPPKBBJC4GWJ3XAPWZL4DBVT6YH6PVBWMOKJHDO66577OBJVOOKWAVY7JEFQTTZNRTNDXPHI42AGHMCNWHFBSG63PXSMO67YQJBC55CHAQQI3XS3ZUCQ"
scope
string
Access Token Scope.
- Example
- "privx-user connections-manual"
Was this page helpful?