During the OAuth login process, Volcano Engine supports OAuth authentication in the authorization code mode, which requires obtaining the authorization code through the authorization endpoint of the enterprise identity system, obtaining the AccessToken through the Token endpoint, and obtaining user information through the UserInfo endpoint.
Obtaining the authorization code is returned through the URL parameter, and the interface standards for obtaining AccessToken and user information are as follows:
| Request Information | |
|---|---|
| Request Method | HTTP POST |
| Request Type | application/x-www-form-urlencoded |
| Request Address | ${access_token URL} |
| Request | |
| Client_id | client side id |
| Client_secret | client side app secret |
| Grant_type | Authorization method, fixed as authorization code |
| Redirect_uri | Redirect_uri parameters in the login process |
| Code | Authorization code |
| Response | |
| Response type | Application/json |
Response example
{ "access_token": "", "token_type": "Bearer", "refresh_token": "", "expire_in": 3600 }
| Request Information | |
|---|---|
| Request Method | HTTP GET |
| Request Type | application/x-www-form-urlencoded |
| Request Address | ${user_info URL} |
| Header | |
| Authorization | Bearer ${access_token} |
| Response | |
| Response type | application/json |
Response example
{ "user": { "name": "" } }

