Closed
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
.