Package io.quarkus.security.identity
Interface SecurityIdentityAugmentor
-
public interface SecurityIdentityAugmentorAn interface that allows for aSecurityIdentityto 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 thepriority()field.Implementations are run from highest to lowest priority.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description io.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 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
-
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
-
-