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

feat: 3.1.0 roles in security schema for all types #513

Merged

Conversation

TomFrost
Copy link
Contributor

@TomFrost TomFrost commented Jan 7, 2021

The OpenAPI 3.1.0 spec, currently in RC2, has formalized that the security schema will allow all security types to specify "roles" using the same syntax as OAuth2 and OIDC scopes: by simply putting strings into what previously was forced to be an empty array. These strings do not need to be enumerated in the security component, as they do with OAuth2 and OIDC.

Conveniently, this is a new feature that can be implemented entirely by deleting code! This PR allows roles to be specified, using the same scopes mechanism already in place.

@cdimascio cdimascio merged commit 6d2a14d into cdimascio:master Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants