Accessing And Refreshing Tokens
In this tutorial we will show you how to obtain auth_token
and refresh it.
In this tutorial there will be used the following parameters:
- client_id: 63177104986024782d5bb7e2
- redirect_uri: http://localhost/oauth-redirect
- response_type: code
First of all you need to construct Authorize URL:
Authorize url = https://api.health.cloud.corsano.com/oauth/authorize
+ ?client_id={YOUR CLIENT ID}
+ &redirect_uri={YOUR REDIRECT URI}
+ &response_type=code
In this demo case this url is
After user clicks Authorize he or she will be redirected to the redirect_uri that you provided.
You need to handle this endpoint of your side. You need to get code
parameter from the url and exchange that to the access_token
.
Please check video below.