Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 36e4760

Browse files
authored
Merge pull request #57 from KetanChawda-MSFT/kechaw-dev
Added Identities Templates
2 parents 61449d5 + 82a61ba commit 36e4760

File tree

4 files changed

+105
-0
lines changed

4 files changed

+105
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
3+
"contentVersion": "1.0.0.0",
4+
"parameters": {
5+
"ApimServiceName": {
6+
"value": "contoso-dev"
7+
},
8+
"ClientID": {
9+
"value": "ClientID"
10+
},
11+
"ClientSecret": {
12+
"value": "<ClentSecret>"
13+
},
14+
"allowedTenants": {
15+
"value": "<tenant>"
16+
}
17+
}
18+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
3+
"contentVersion": "1.0.0.0",
4+
"parameters": {
5+
"ApimServiceName": {
6+
"type": "string"
7+
},
8+
"ClientID": {
9+
"type": "string"
10+
},
11+
"ClientSecret": {
12+
"type": "string"
13+
},
14+
"allowedTenants": {
15+
"type": "string"
16+
}
17+
},
18+
"resources": [
19+
{
20+
"type": "Microsoft.ApiManagement/service/identityProviders",
21+
"name": "[concat(parameters('ApimServiceName'), '/aad')]",
22+
"apiVersion": "2018-01-01",
23+
"properties": {
24+
"clientId": "[parameters('ClientID')]",
25+
"clientSecret": "[parameters('ClientSecret')]",
26+
"type": "aad",
27+
"allowedTenants": [
28+
"[parameters('allowedTenants')]"
29+
]
30+
}
31+
}
32+
]
33+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
3+
"contentVersion": "1.0.0.0",
4+
"parameters": {
5+
"ApimServiceName": {
6+
"value": "contoso-dev"
7+
},
8+
"ClientID": {
9+
"value": "<ClientID>"
10+
},
11+
"ClientSecret": {
12+
"value": "<ClientSecret>"
13+
},
14+
"IdentityType": {
15+
"value": "facebook"
16+
}
17+
}
18+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
3+
"contentVersion": "1.0.0.0",
4+
"parameters": {
5+
"ApimServiceName": {
6+
"type": "string"
7+
},
8+
"ClientID": {
9+
"type": "string"
10+
},
11+
"ClientSecret": {
12+
"type": "string"
13+
},
14+
"IdentityType": {
15+
"type": "string",
16+
"allowedValues": [
17+
"facebook",
18+
"google",
19+
"microsoft",
20+
"twitter"
21+
]
22+
}
23+
},
24+
"resources": [
25+
{
26+
"type": "Microsoft.ApiManagement/service/identityProviders",
27+
"name": "[concat(parameters('ApimServiceName'), '/',parameters('IdentityType'))]",
28+
"apiVersion": "2018-01-01",
29+
"properties": {
30+
"clientId": "[parameters('ClientID')]",
31+
"clientSecret": "[parameters('ClientSecret')]",
32+
"type": "[parameters('IdentityType')]"
33+
}
34+
}
35+
]
36+
}

0 commit comments

Comments
 (0)