You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are referring to a bean in your expression like so: `@webSecurity.check(authentication, request)`, it's recommended that you instead call the bean directly, which will look something like the following:
1000
1023
1001
1024
[tabs]
@@ -1019,7 +1042,32 @@ Kotlin::
1019
1042
1020
1043
For complex instructions that include bean references as well as other expressions, it is recommended that you change those to implement `AuthorizationManager` and refer to them by calling `.access(AuthorizationManager)`.
1021
1044
1022
-
If you are not able to do that, you can configure a javadoc:org.springframework.security.web.access.expression.DefaultHttpSecurityExpressionHandler[] with a bean resolver and supply that to `WebExpressionAuthorizationManager#setExpressionhandler`.
1045
+
If you are not able to do that, you can publish javadoc:org.springframework.security.web.access.expression.WebExpressionAuthorizationManager$Builder[] as a bean:
Copy file name to clipboardExpand all lines: web/src/main/java/org/springframework/security/web/access/expression/WebExpressionAuthorizationManager.java
Copy file name to clipboardExpand all lines: web/src/test/java/org/springframework/security/web/access/expression/WebExpressionAuthorizationManagerTests.java
0 commit comments