...
Status | ||||
---|---|---|---|---|
|
GET /api/v1/oauth/authorize
Query Parameters
...
Note |
---|
This step should NOT be done in the browser. Why? You have to pass your At any cost, you should NOT expose your |
Status | ||||
---|---|---|---|---|
|
POST /api
...
/oauth/token
Query Parameters
Name | Type | Description |
---|---|---|
|
| Required. The client ID you received from Citesphere for your App. |
|
| Required. The client secret you received from Citesphere for your App. |
|
| Required. The code you received as a response in the previous step |
|
| The URL of the application you configured in Citesphere |
|
| The unguessable random string you provided (and received back) during the previous step. |
|
| Required. Use For a list of values, check https://auth0.com/docs/applications/application-grant-types |
...
Of course, you should pass client_id
and client_secret
similar to the previous request.
Status | ||||
---|---|---|---|---|
|
POST /api
...
/oauth/token
Query Parameters
Name | Type | Description |
---|---|---|
|
| Required. The client ID you received from Citesphere for your App. |
|
| Required. The client secret you received from Citesphere for your App. |
|
| Required. Use the Example: |
|
| Required. Use |
Example: POST /api
...
/oauth/token?client_id=OAUTHCLIENT007&client_secret=xyz&refresh_token=0d06219a-1b49-7895-9220-ef3b9810f09d&grant_type=refresh_token
Response
Code Block | ||
---|---|---|
| ||
{ "access_token": "c322172e-16ac-8952-95e7-19639745bbaf", "token_type": "bearer", "refresh_token": "0d06219a-1b49-7895-9220-ef3b9810f09d", "expires_in": 3600, "scope": "read" } |
...