Skip to content

Commit ed774d3

Browse files
Fr05ty-hubrwinch
authored andcommitted
Replacing use of deprecated 'check' in authorization documentation
check() was deprecated in Spring Security 7, but was referenced in documentation Signed-off-by: Fr05ty-hub <frostylucas@gmail.com>
1 parent eb5cc89 commit ed774d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/modules/ROOT/pages/servlet/authorization/architecture.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ default void verify(Supplier<Authentication> authentication, Object secureObject
107107
}
108108
----
109109

110-
The ``AuthorizationManager``'s `check` method is passed all the relevant information it needs in order to make an authorization decision.
110+
The ``AuthorizationManager``'s `authorize` method is passed all the relevant information it needs in order to make an authorization decision.
111111
In particular, passing the secure `Object` enables those arguments contained in the actual secure object invocation to be inspected.
112112
For example, let's assume the secure object was a `MethodInvocation`.
113113
It would be easy to query the `MethodInvocation` for any `Customer` argument, and then implement some sort of security logic in the `AuthorizationManager` to ensure the principal is permitted to operate on that customer.

0 commit comments

Comments
 (0)