-
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: ideal-for-contributionAn issue that we actively are looking for someone to help us withAn issue that we actively are looking for someone to help us withtype: enhancementA general enhancementA general enhancement
Description
It's helpful to know why a security decision was made.
AuthorityReactiveAuthorizationManager and AuthorityAuthorizationManager could do this by constructing an AuthorityAuthorizationDecision:
public class AuthorityAuthorizationManager implements AuthorizationManager {
// ...
public static class AuthorityAuthorizationDecision extends AuthorizationDecision {
private Collection<GrantedAuthority> authorities;
public AuthorityAuthorizationDecision(boolean decision, GrantedAuthority... authorities) {
super(decision);
// ...
}
public Collection<GrantedAuthority> getAuthorities() {
return this.authorities;
}
}
}Likewise with AuthenticatedReactiveAuthorizationManager, AuthenticatedAuthorizationManager and AuthenticatedAuthorizationDecision.
Each implementation would likely need to override toString to assist with logging authorization events.
Metadata
Metadata
Assignees
Labels
in: coreAn issue in spring-security-coreAn issue in spring-security-corestatus: ideal-for-contributionAn issue that we actively are looking for someone to help us withAn issue that we actively are looking for someone to help us withtype: enhancementA general enhancementA general enhancement