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).
  • Field Details

  • 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:
      priority in interface io.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:
      augment in interface io.quarkus.security.identity.SecurityIdentityAugmentor
    • setPrincipalAuthInfo

      protected io.quarkus.security.identity.SecurityIdentity setPrincipalAuthInfo(io.quarkus.security.identity.SecurityIdentity identity, PrincipalMapper principalMapper, PrincipalRolesMapper rolesMapper)