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

Commit 9774b1b

Browse files
authored
Merge pull request #131 from mbsnl/master
Examples Security: Disable Username and Password
2 parents d749c4d + 8ef86c4 commit 9774b1b

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
"UsernamePasswordSignup": {
9+
"value": false
10+
}
11+
}
12+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
"UsernamePasswordSignup": {
9+
"type": "bool",
10+
"defaultValue": false,
11+
"allowedValues": [
12+
true,
13+
false
14+
]
15+
}
16+
},
17+
"resources": [
18+
{
19+
"type": "Microsoft.ApiManagement/service/portalsettings",
20+
"name": "[concat(parameters('ApimServiceName'), '/signup')]",
21+
"apiVersion": "2018-01-01",
22+
"properties": {
23+
"enabled": "[parameters('UsernamePasswordSignup')]"
24+
}
25+
}
26+
]
27+
}

0 commit comments

Comments
 (0)