Module io.quarkus.security.api
Package io.quarkus.security.identity
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 Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<SecurityIdentity>augment(SecurityIdentity identity, AuthenticationRequestContext context) Augments a security identity to allow for modification of the underlying identity.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.default intpriority()
-
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 identitycontext- A context object that can be used to run blocking tasksattributes- All the authentication request attributes- Returns:
- A completion stage that will resolve to the modified identity
-