Authorization
The first request in the OAuth process when the client requests for authorization code
Last updated
The first request in the OAuth process when the client requests for authorization code
Last updated
After approval Client will be given with client_id and client_secret.
This is the first request in the OAuth process when the client requests for authorization code by redirecting to the following URL:
Parameters
| Description |
|
|
|
|
|
|
|
|
|
|
Scopes :
Company Scopes
user_session (Used only for the case of Company access_token generation)
company_session
Oauth URL For:
Development - https://stagingaccount.xoxoday.com/chef
Production - https://accounts.xoxoday.com/chef
If all the above parameters are validated successfully and user is already authenticated, then the user is redirected to following authorization consent page.
After authentication, the user will again be redirected to the authorization consent(allow/deny) page.
If the user allowed the request then the browser will be redirected to the following URL:
{client_redirect_url}?code=exxxx69660xxxxa6413c17d897xxxxx99&state={client_state}
In the above-redirected URL, code is a temporary token created on account of client allowed access which is valid for 5 min duration. Later this code is exchanged for access_token which is used for accessing xoxoday resources granted based on the scopes allowed by the user.