diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/UndertowDeploymentRecorder.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/UndertowDeploymentRecorder.java index 594ed052c54bd..41e73d18ff938 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/UndertowDeploymentRecorder.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/UndertowDeploymentRecorder.java @@ -221,7 +221,7 @@ public RuntimeValue createDeployment(String name, Set kn public void handleNotification(SecurityNotification notification) { if (notification.getEventType() == SecurityNotification.EventType.AUTHENTICATED) { QuarkusUndertowAccount account = (QuarkusUndertowAccount) notification.getAccount(); - CDI.current().getBeanManager().fireEvent(account.getSecurityIdentity()); + CDI.current().select(CurrentIdentityAssociation.class).get().setIdentity(account.getSecurityIdentity()); } } });