diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/apimauthorizationservers.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/apimauthorizationservers.json index 1975c09201dc..32e766c4c6c2 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/apimauthorizationservers.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/apimauthorizationservers.json @@ -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": { diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/definitions.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/definitions.json index 51dfac6d821d..9481f9eac178 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/definitions.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/definitions.json @@ -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": { @@ -2748,7 +2767,8 @@ "description": "Logger type.", "enum": [ "azureEventHub", - "applicationInsights" + "applicationInsights", + "azureMonitor" ], "x-ms-enum": { "name": "LoggerType", @@ -2761,6 +2781,10 @@ { "value": "applicationInsights", "description": "Azure Application Insights as log destination." + }, + { + "value": "azureMonitor", + "description": "Azure Monitor" } ] } diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/examples/ApiManagementAuthorizationServerListSecrets.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/examples/ApiManagementAuthorizationServerListSecrets.json index 48d65212ec60..41d62225bcbb 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/examples/ApiManagementAuthorizationServerListSecrets.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/examples/ApiManagementAuthorizationServerListSecrets.json @@ -9,7 +9,9 @@ "responses": { "200": { "body": { - "clientSecret": "2" + "clientSecret": "2", + "resourceOwnerUsername": "un", + "resourceOwnerPassword": "pwd" } } }