-
-
Notifications
You must be signed in to change notification settings - Fork 528
Support per method security requirement in RepositoryRestResource #1059
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
Labels
enhancement
New feature or request
Comments
The support is now added. |
Works as expected. Thanks! |
This was referenced Mar 8, 2021
This was referenced Mar 16, 2021
Closed
Closed
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem? Please describe.
I'm using spring-data-rest to export rest endpoints for a repository. This works great but the @securityrequirement annotation does only work on the class level. I would like to give each method a different security requirement.
Example:
@IsAdmin
infers@SecurityRequirement(name = OAUTH2_SECURITY_SCHEME, scopes = "api_admin")
@IsAuthenticated
infers@SecurityRequirement(name = OAUTH2_SECURITY_SCHEME, scopes = "api_full")
Describe the solution you'd like
The DataRestTagsService should check the actual repository method in addition to the repository type.
springdoc-openapi/springdoc-openapi-data-rest/src/main/java/org/springdoc/data/rest/core/DataRestTagsService.java
Line 113 in 4a25acf
The text was updated successfully, but these errors were encountered: