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
    Modifier and Type
    Field
    Description
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ActiveRolesAugmentor(org.apache.polaris.service.auth.ActiveRolesProvider activeRolesProvider)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity>
    augment(io.quarkus.security.identity.SecurityIdentity identity, io.quarkus.security.identity.AuthenticationRequestContext context)
     
    int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.quarkus.security.identity.SecurityIdentityAugmentor

    augment
  • Field Details

  • Constructor Details

    • ActiveRolesAugmentor

      @Inject public ActiveRolesAugmentor(org.apache.polaris.service.auth.ActiveRolesProvider activeRolesProvider)
  • 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