1
0
mirror of synced 2026-08-05 17:57:15 +00:00

SpEL Expressions Support Returning AuthorizationManager

Closes gh-17936
This commit is contained in:
Josh Cummings
2025-09-19 10:02:06 -06:00
parent 25e413127c
commit 765bdf1ed0
14 changed files with 84 additions and 4 deletions
@@ -1362,6 +1362,12 @@ Note, though, that returning an object is preferred as this doesn't incur the ex
Then, you can access the custom details when you <<fallback-values-authorization-denied, customize how the authorization result is handled>>.
[TIP]
====
Further, you can return an `AuthorizationManager` itself.
This is helpful when unifying custom web authorization rules with method security ones since web security by default requires specifying an `AuthorizationManager` instance.
====
[[custom-authorization-managers]]
=== Using a Custom Authorization Manager