1
0
mirror of synced 2026-05-22 21:33:16 +00:00

Polish WebAttributes ApplicationContext Support

Closes gh-8843

Signed-off-by: Josh Cummings <3627351+jzheaux@users.noreply.github.com>
This commit is contained in:
Josh Cummings
2026-03-20 15:58:13 -06:00
parent 846794d31b
commit d76fb7f2e6
3 changed files with 38 additions and 15 deletions
@@ -37,6 +37,22 @@ public final class WebAttributes {
*/
public static final String ACCESS_DENIED_403 = "SPRING_SECURITY_403_EXCEPTION";
/**
* Set as a request attribute to provide an
* {@link org.springframework.context.ApplicationContext} for use by JSP authorize
* tags when resolving security beans.
* <p>
* When set, this attribute is preferred over the root web application context. The
* value must be of type {@link org.springframework.context.ApplicationContext}.
*
* <p>
* Used in {@code org.springframework.security.taglibs.authz.AbstractAuthorizeTag}.
*
* @since 7.1
*/
public static final String APPLICATION_CONTEXT_ATTRIBUTE = WebAttributes.class.getName()
+ ".APPLICATION_CONTEXT_ATTRIBUTE";
/**
* Used to cache an authentication-failure exception in the session.
*