Closed
Description
Like AuthorizationManager
, it would be nice to be able to defer the looking up Authentication
in SecurityExpressionHandler
.
A default createEvaluationContext
method could be added:
default EvaluationContext createEvaluationContext(Supplier<Authentication> authentication, T invocation) {
return createEvaluationContext(authentication.get(), invocation);
}
And then DefaultXXXSecurityExpressionHandler
s would be updated to defer evaluation until the authentication was inspected.