Class ActiveRolesAugmentor
java.lang.Object
org.apache.polaris.service.quarkus.auth.ActiveRolesAugmentor
- All Implemented Interfaces:
io.quarkus.security.identity.SecurityIdentityAugmentor
@ApplicationScoped
public class ActiveRolesAugmentor
extends Object
implements io.quarkus.security.identity.SecurityIdentityAugmentor
A custom
SecurityIdentityAugmentor that adds active roles to the SecurityIdentity. This is used to augment the identity with valid active roles after
authentication.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionActiveRolesAugmentor(org.apache.polaris.service.auth.ActiveRolesProvider activeRolesProvider) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.security.identity.SecurityIdentityAugmentor
augment
-
Field Details
-
PRIORITY
public static final int PRIORITY- See Also:
-
-
Constructor Details
-
ActiveRolesAugmentor
@Inject public ActiveRolesAugmentor(org.apache.polaris.service.auth.ActiveRolesProvider activeRolesProvider)
-
-
Method Details
-
priority
public int priority()- Specified by:
priorityin interfaceio.quarkus.security.identity.SecurityIdentityAugmentor
-
augment
public io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> augment(io.quarkus.security.identity.SecurityIdentity identity, io.quarkus.security.identity.AuthenticationRequestContext context) - Specified by:
augmentin interfaceio.quarkus.security.identity.SecurityIdentityAugmentor
-