-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add genarate security roles by security scopes (#1733)
- Loading branch information
Showing
6 changed files
with
115 additions
and
11 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
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
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
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
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,38 @@ | ||
openapi: 3.0.3 | ||
info: | ||
description: This is an example of the openapi documentation | ||
title: OpenAPI | ||
version: 0.0.0 | ||
paths: | ||
/pet: | ||
post: | ||
operationId: save | ||
security: | ||
- OAuth2: [ write, admin ] | ||
responses: | ||
200: | ||
description: Successfully saved | ||
get: | ||
operationId: get | ||
security: | ||
- OAuth2: [ read, admin ] | ||
responses: | ||
200: | ||
description: Successfully retrieved information | ||
components: | ||
securitySchemes: | ||
OAuth2: | ||
type: oauth2 | ||
flows: | ||
authorizationCode: | ||
authorizationUrl: https://example.com/oauth/authorize | ||
tokenUrl: https://example.com/oauth/token | ||
scopes: | ||
read: Grants read access | ||
write: Grants write access | ||
admin: Grants access to admin operations | ||
security: | ||
- OAuth2: | ||
- read | ||
- write | ||
- admin |
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