Skip to content

Commit

Permalink
[2020-06-01-preview] Update Oauth Server secrets Contract (#10602)
Browse files Browse the repository at this point in the history
* Oauth server secrets contract

* fix azureMonitor enum
  • Loading branch information
solankisamir authored Aug 31, 2020
1 parent d9afeed commit 4e353d1
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@
"200": {
"description": "Gets the secrets of the specified authorization server.",
"schema": {
"$ref": "./definitions.json#/definitions/ClientSecretContract"
"$ref": "./definitions.json#/definitions/AuthorizationServerSecretsContract"
},
"headers": {
"ETag": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,25 @@
],
"description": "External OAuth authorization server Update settings contract."
},
"AuthorizationServerSecretsContract": {
"properties": {
"clientSecret": {
"x-ms-secret": true,
"type": "string",
"description": "oAuth Authorization Server Secrets."
},
"resourceOwnerUsername": {
"type": "string",
"description": "Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username."
},
"resourceOwnerPassword": {
"x-ms-secret": true,
"type": "string",
"description": "Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password."
}
},
"description": "OAuth Server Secrets Contract."
},
"BackendAuthorizationHeaderCredentials": {
"properties": {
"scheme": {
Expand Down Expand Up @@ -2748,7 +2767,8 @@
"description": "Logger type.",
"enum": [
"azureEventHub",
"applicationInsights"
"applicationInsights",
"azureMonitor"
],
"x-ms-enum": {
"name": "LoggerType",
Expand All @@ -2761,6 +2781,10 @@
{
"value": "applicationInsights",
"description": "Azure Application Insights as log destination."
},
{
"value": "azureMonitor",
"description": "Azure Monitor"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"responses": {
"200": {
"body": {
"clientSecret": "2"
"clientSecret": "2",
"resourceOwnerUsername": "un",
"resourceOwnerPassword": "pwd"
}
}
}
Expand Down

0 comments on commit 4e353d1

Please sign in to comment.