-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Closed
Labels
in: coreAn issue in spring-security-coreAn issue in spring-security-corestatus: duplicateA duplicate of another issueA duplicate of another issuetype: enhancementA general enhancementA general enhancement
Description
It would be nice to have an AuthorizationManager that returned a static response:
public final class SingleResultAuthorizationManager<C> implements AuthorizationManager<C> {
private final AuthorizationResult result;
// ...
public static <C> SingleResultAuthorizationManager<C> permitAll() { ... }
public static <C> SingleResultAuthorizationManager<C> denyAll() { ... }
}This ticket would also look for and replace code that creates a permit-all or deny-all lambda like in AuthorizeHttpRequestsConfigurer#AuthorizeUrl and RequestMatcherDelegatingAuthorizationManager#AuthorizeUrl.
Metadata
Metadata
Assignees
Labels
in: coreAn issue in spring-security-coreAn issue in spring-security-corestatus: duplicateA duplicate of another issueA duplicate of another issuetype: enhancementA general enhancementA general enhancement