-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomAuthenticationMS_JO.json
More file actions
46 lines (45 loc) · 1.17 KB
/
CustomAuthenticationMS_JO.json
File metadata and controls
46 lines (45 loc) · 1.17 KB
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
43
44
45
46
{
"type": "customAuthorization",
"authorizationType": "Bearer",
"endpoint": "https://login.microsoftonline.com/<tenant-id>/oauth2/token",
"method": "GET",
"headers": {
"content-type": "application/x-www-form-urlencoded"
},
"body": {
"bodyType": "form",
"bodyParams": {
"grant_type": "password",
"client_id": "<client-id>",
"resource": "<ms dynamics custom domain url>",
"username": "<ms dynamics trial account user id>",
"password": "<ms dynamics trial account password>"
}
},
"tokenInResponse": "json://access_token",
"cacheDuration": {
"duration": 5,
"timeUnit": "hours"
}
}
Sample:
{
"type": "customAuthorization",
"authorizationType": "Bearer",
"endpoint": "https://login.microsoftonline.com/c256b951-c85d-4953-831a-56203c9ef254/oauth2/token",
"method": "POST",
"headers": {
"content-type": "application/x-www-form-urlencoded"
},
"body": {
"bodyType": "form",
"bodyParams": {
"grant_type": "password",
"client_id": "ff3b4cc3-d3a3-4972-b446-29dad456474c",
"resource": "https://adminjo.crm.dynamics.com",
"username": "user1@adminjo.onmicrosoft.com",
"password": "********"
}
},
"tokenInResponse": "json://access_token"
}