Interface SecurityIdentityAugmentor


  • public interface SecurityIdentityAugmentor
    An interface that allows for a SecurityIdentity to be modified after creation.

    Implementations of this interface should be CDI beans. At run time all CDI beans that implement this interface will be used to augment the SecurityIdentity, with the order determined via the priority() field.

    Implementations are run from highest to lowest priority.

    • Method Detail

      • priority

        default int priority()
        Returns:
        The priority
      • augment

        io.smallrye.mutiny.Uni<SecurityIdentity> augment​(SecurityIdentity identity,
                                                         AuthenticationRequestContext context)
        Augments a security identity to allow for modification of the underlying identity.
        Parameters:
        identity - The identity
        Returns:
        A completion stage that will resolve to the modified identity