diff --git a/src/main/java/io/quarkus/security/identity/SecurityIdentityAugmentor.java b/src/main/java/io/quarkus/security/identity/SecurityIdentityAugmentor.java index 462dbfb..9f9b6fb 100644 --- a/src/main/java/io/quarkus/security/identity/SecurityIdentityAugmentor.java +++ b/src/main/java/io/quarkus/security/identity/SecurityIdentityAugmentor.java @@ -2,6 +2,8 @@ import io.smallrye.mutiny.Uni; +import java.util.Map; + /** * An interface that allows for a {@link SecurityIdentity} to be modified after creation. *

@@ -26,4 +28,17 @@ default int priority() { * @return A completion stage that will resolve to the modified identity */ Uni augment(SecurityIdentity identity, AuthenticationRequestContext context); + + + /** + * Augments a security identity to allow for modification of the underlying identity. + * + * @param identity The identity + * @param context A context object that can be used to run blocking tasks + * @param attributes All the authentication request attributes + * @return A completion stage that will resolve to the modified identity + */ + default Uni augment(SecurityIdentity identity, AuthenticationRequestContext context, Map attributes) { + return augment(identity, context); + } }