-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Spring Security annotations on subclasses support intercepting parent class methods. #14479
Conversation
Previously, the `decode` method threw a `JwtException` directly when encountering an unsupported algorithm or any exception during parsing. This commit introduces a more robust error handling mechanism. Now, instead of throwing exceptions directly, it returns a `Mono.error()` with a `BadJwtException` containing detailed error information. This approach provides more flexibility and allows the caller to handle errors in a more granular way, by being able to use project reactors onError functionality. Closes spring-projectsgh-14467
Closes spring-projectsgh-14493 Signed-off-by: ahmd-nabil <[email protected]>
Bumps [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) from 1.24.0 to 1.25.0. - [Release notes](https://github.com/slackapi/slack-github-action/releases) - [Commits](slackapi/slack-github-action@v1.24.0...v1.25.0) --- updated-dependencies: - dependency-name: slackapi/slack-github-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [gradle/gradle-build-action](https://github.com/gradle/gradle-build-action) from 2 to 3. - [Release notes](https://github.com/gradle/gradle-build-action/releases) - [Commits](gradle/gradle-build-action@v2...v3) --- updated-dependencies: - dependency-name: gradle/gradle-build-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
Closes spring-projectsgh-14186 Signed-off-by: ahmd-nabil <[email protected]>
Signed-off-by: ahmd-nabil <[email protected]>
- Add Tests - Add Reactive Support Issue spring-projectsgh-14186
there is no word like 'byusing'. I fixed 'byusing' to 'by using'.
lambda expression typo. I changed '(session) - session' to '(session) -> session'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @kse-music! This is looking good; I've left some feedback inline.
Also, when you submit the requested changes, will you please squash your commits and have the commit message contain a title and the ticket like so:
Have Method Security Start at Target Class
Closes gh-13783
Feel free to have a different title, the above is just the requested format.
} | ||
|
||
@RolesAllowed("USER") | ||
public static class RolesAllowedClass extends SecuredAuthorizationManagerTests.ParentClass { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please copy the definition for ParentClass
in this class. That way, the test classes don't refer to each other.
} | ||
|
||
@PostAuthorize("hasRole('USER')") | ||
public static class PostAuthorizeClass extends SecuredAuthorizationManagerTests.ParentClass { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please copy the definition for ParentClass
in this class. That way, the test classes don't refer to each other.
Please also do this with any other references to the ParentClass
defined in another test class.
Also, I'd recommend rebasing so that you don't need to the two extra formatting changes as well. |
Closes gh-13783