Skip to content

Fix documentation for Custom Authorization Manager#18362

Closed
as1605 wants to merge 2 commits into
spring-projects:mainfrom
as1605:main
Closed

Fix documentation for Custom Authorization Manager#18362
as1605 wants to merge 2 commits into
spring-projects:mainfrom
as1605:main

Conversation

@as1605

@as1605 as1605 commented Dec 26, 2025

Copy link
Copy Markdown
Contributor

Fixes #13967

Updates method security documentation to align with Spring 7 Security’s current authorization model by separating PreAuthorize and PostAuthorize logic into dedicated AuthorizationManager implementations, which was not possible in current example, throwing compilation error #13967 (comment).

Also clarifies optional customization of exceptions via MethodAuthorizationDeniedHandler.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 26, 2025
@as1605

as1605 commented Dec 26, 2025

Copy link
Copy Markdown
Contributor Author

@pbborisov18 @marcusdacoregio @MEnnabah @abccbaandy Please review

Signed-off-by: as1605 <1605.aditya.singh@gmail.com>
Signed-off-by: as1605 <1605.aditya.singh@gmail.com>
@jzheaux jzheaux self-assigned this Mar 27, 2026
@jzheaux jzheaux added in: docs An issue in Documentation or samples type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 27, 2026
@jzheaux jzheaux added this to the 6.5.10 milestone Mar 27, 2026
@jzheaux

jzheaux commented Mar 27, 2026

Copy link
Copy Markdown
Collaborator

Thanks, @as1605! This is now merged into 6.5.x, 7.0.x, and main in f6bb55e

Also, I added a polish in ac63cf4 that keeps the change focused on publishing two separate beans.

@jzheaux jzheaux closed this Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: docs An issue in Documentation or samples type: bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PreAuthorize using a custom AuthorizationManager (Documentation)

3 participants