1 | {
|
2 | "type": "oauth2",
|
3 | "title": "{{title}}",
|
4 | "clientId": "<CLIENT ID>",
|
5 | "clientSecret": "<CLIENT SECRET>",
|
6 | "authURL": "<AUTHORIZATION URL>",
|
7 | "tokenURL": "<ACCESS TOKEN URL>",
|
8 | "authQueryParams": {
|
9 | // Optional query params required to be in authorization request supports interpolation
|
10 | },
|
11 | "tokenParams": {
|
12 | "method": "",
|
13 | "headers": {},
|
14 | "data": {
|
15 | "client_id": "{client_id}",
|
16 | "client_secret": "{client_secret}",
|
17 | "redirect_uri": "{redirect_uri}",
|
18 | "grant_type": "authorization_code"
|
19 | }
|
20 | },
|
21 | "refreshParams": {
|
22 | // add additional keys required for refresh token process
|
23 | "client_id": "{client_id}",
|
24 | "client_secret": "{client_secret}",
|
25 | "redirect_uri": "{redirect_uri}",
|
26 | "grant_type": "refresh_token"
|
27 | },
|
28 | "requiredParams": [
|
29 | // Optional json schema for rendering form before authorizing
|
30 | ],
|
31 | "refreshURL": "<REFRESH TOKEN URL, DEFAULT TO tokenURL>", //<optional>
|
32 | "scope": {
|
33 | //<optional>
|
34 | "READABLE SCOPE TITLE": "SCOPE"
|
35 | },
|
36 | "validate": {
|
37 | "url": "ANY API URL TO VALIDATE TOKEN OF THIRD PARTY SERVICE",
|
38 | "headers": {
|
39 | //<optional>
|
40 | "Authorization": "Bearer {access_token}"
|
41 | },
|
42 | "query": { //<optional>
|
43 | }
|
44 | },
|
45 | "redirectURL": "{{redirectURL}}"
|
46 | } |
\ | No newline at end of file |