Skip to content

MethodAuthorizationDeniedHandler should allow access to the returnObject on PostAuthorize #15712

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

Closed
Tracked by #14595
rwinch opened this issue Aug 30, 2024 · 1 comment
Assignees
Labels
status: invalid An issue that we don't feel is valid

Comments

@rwinch
Copy link
Member

rwinch commented Aug 30, 2024

I think this could be done by ensuring that the AuthorizationResult for PostAuthorize has the returnObject on it. We should also try to make it so that the MethodAuthorizationDeniedHandler does not need to cast the AuthorizationResult

@rwinch rwinch self-assigned this Aug 30, 2024
@rwinch
Copy link
Member Author

rwinch commented Aug 30, 2024

After speaking to @marcusdacoregio this was an error on my part, You need to use @PostAuthorize and override the default method in MethodAccessDeniedHandler.

@rwinch rwinch closed this as completed Aug 30, 2024
@rwinch rwinch added the status: invalid An issue that we don't feel is valid label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: invalid An issue that we don't feel is valid
Projects
None yet
Development

No branches or pull requests

1 participant