-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add openid connect in authentication settings (#4233)
- Loading branch information
1 parent
ef8946d
commit 46689b8
Showing
4 changed files
with
295 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
94 changes: 94 additions & 0 deletions
94
...ft.ApiManagement/preview/2018-01-01/examples/ApiManagementCreateApiWithOpenIdConnect.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
{ | ||
"parameters": { | ||
"serviceName": "apimService1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2018-01-01", | ||
"subscriptionId": "subid", | ||
"apiId": "tempgroup", | ||
"parameters": { | ||
"properties": { | ||
"displayName": "Swagger Petstore", | ||
"description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.", | ||
"serviceUrl": "http://petstore.swagger.io/v2", | ||
"path": "petstore", | ||
"protocols": [ | ||
"https" | ||
], | ||
"authenticationSettings": { | ||
"openid": { | ||
"openidProviderId": "testopenid", | ||
"bearerTokenSendingMethods": [ | ||
"authorizationHeader" | ||
] | ||
} | ||
}, | ||
"subscriptionKeyParameterNames": { | ||
"header": "Ocp-Apim-Subscription-Key", | ||
"query": "subscription-key" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/58da4c4ccdae970a08121230", | ||
"type": "Microsoft.ApiManagement/service/apis", | ||
"name": "58da4c4ccdae970a08121230", | ||
"properties": { | ||
"displayName": "Swagger Petstore", | ||
"apiRevision": "1", | ||
"description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.", | ||
"serviceUrl": "http://petstore.swagger.io/v2", | ||
"path": "petstore", | ||
"protocols": [ | ||
"https" | ||
], | ||
"authenticationSettings": { | ||
"openid": { | ||
"openidProviderId": "testopenid", | ||
"bearerTokenSendingMethods": [ | ||
"authorizationHeader" | ||
] | ||
} | ||
}, | ||
"subscriptionKeyParameterNames": { | ||
"header": "Ocp-Apim-Subscription-Key", | ||
"query": "subscription-key" | ||
}, | ||
"isCurrent": true | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/58da4c4ccdae970a08121230", | ||
"type": "Microsoft.ApiManagement/service/apis", | ||
"name": "58da4c4ccdae970a08121230", | ||
"properties": { | ||
"displayName": "Swagger Petstore", | ||
"apiRevision": "1", | ||
"description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.", | ||
"serviceUrl": "http://petstore.swagger.io/v2", | ||
"path": "petstore", | ||
"protocols": [ | ||
"https" | ||
], | ||
"authenticationSettings": { | ||
"openid": { | ||
"openidProviderId": "testopenid", | ||
"bearerTokenSendingMethods": [ | ||
"authorizationHeader" | ||
] | ||
} | ||
}, | ||
"subscriptionKeyParameterNames": { | ||
"header": "Ocp-Apim-Subscription-Key", | ||
"query": "subscription-key" | ||
}, | ||
"isCurrent": true | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.