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 Details

    • 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
    • augment

      default io.smallrye.mutiny.Uni<SecurityIdentity> augment(SecurityIdentity identity, AuthenticationRequestContext context, Map<String,Object> attributes)
      Augments a security identity to allow for modification of the underlying identity.
      Parameters:
      identity - The identity
      context - A context object that can be used to run blocking tasks
      attributes - All the authentication request attributes
      Returns:
      A completion stage that will resolve to the modified identity