

The code must be used for server side applications, whereas the token must be used for client side applications.

Response_type − It can either be a code or a token. After the request is authorized, the user will be redirected back. Redirect_uri − It should be set to the URL. Following is an example of a dummy requestįollowing are the parameters and their descriptions.Ĭlient_id − It should be set to the client id of your application. You must send the user to the authorization endpoint at the beginning. It gets an access token from the response and sends the token to the API that you wish to access. Then, the access token is requested from the authorization server by the client. The token includes information such as when the token will expire and which app created that token.įirst, it is necessary to acquire OAuth 2.0 client credentials from API console. An access token is a string that identifies a user, an application, or a page.
