Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2020-06-01-preview] Update Oauth Server secrets Contract #10602

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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