Class PrincipalAuthInfoAugmentor
java.lang.Object
org.apache.polaris.service.quarkus.auth.external.PrincipalAuthInfoAugmentor
- All Implemented Interfaces:
io.quarkus.security.identity.SecurityIdentityAugmentor
@ApplicationScoped
public class PrincipalAuthInfoAugmentor
extends Object
implements io.quarkus.security.identity.SecurityIdentityAugmentor
A
SecurityIdentityAugmentor that maps the access token claims, as provided by the OIDC
authentication mechanism, to Polaris-specific properties (principal and principal roles).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final record -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPrincipalAuthInfoAugmentor(jakarta.enterprise.inject.Instance<PrincipalMapper> principalMappers, jakarta.enterprise.inject.Instance<PrincipalRolesMapper> principalRoleMappers) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> augment(io.quarkus.security.identity.SecurityIdentity identity, io.quarkus.security.identity.AuthenticationRequestContext context) intpriority()protected io.quarkus.security.identity.SecurityIdentitysetPrincipalAuthInfo(io.quarkus.security.identity.SecurityIdentity identity, PrincipalMapper principalMapper, PrincipalRolesMapper rolesMapper) 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
-
PrincipalAuthInfoAugmentor
@Inject public PrincipalAuthInfoAugmentor(@Any jakarta.enterprise.inject.Instance<PrincipalMapper> principalMappers, @Any jakarta.enterprise.inject.Instance<PrincipalRolesMapper> principalRoleMappers)
-
-
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
-
setPrincipalAuthInfo
protected io.quarkus.security.identity.SecurityIdentity setPrincipalAuthInfo(io.quarkus.security.identity.SecurityIdentity identity, PrincipalMapper principalMapper, PrincipalRolesMapper rolesMapper)
-