-
Notifications
You must be signed in to change notification settings - Fork 7
/
Office-365-Auth.customAuth.json
42 lines (42 loc) · 1.2 KB
/
Office-365-Auth.customAuth.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"name": "Office 365 (Auth)",
"integrationType": "custom-rest-actions",
"actionType": "customAuth",
"config": {
"request": {
"requestUrlTemplate": "https://login.microsoftonline.com/${credentials.tenant_id}/oauth2/v2.0/token",
"requestType": "POST",
"headers": {
"Authorization": "Basic $encoding.base64(\"${credentials.client_id}:${credentials.client_secret}\")",
"Transfer-Encoding": "buffered",
"Content-Type": "application/x-www-form-urlencoded"
},
"requestTemplate": "scope=${credentials.scope}&grant_type=${credentials.grant_type}"
},
"response": {
"translationMap": {},
"translationMapDefaults": {},
"successTemplate": "${rawResult}"
}
},
"contract": {
"input": {
"inputSchema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Auth Input",
"description": "No Input Value",
"type": "object",
"properties": {}
}
},
"output": {
"successSchema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {},
"additionalProperties": true
}
}
},
"secure": false
}