From f457fd0860865f828f1478b8c79e7a694006501a Mon Sep 17 00:00:00 2001 From: Darin Kelkhoff Date: Tue, 3 Sep 2024 22:01:07 -0500 Subject: [PATCH] CE-1654 activate chickenAndEggSession while calling customizer.finalCustomizeSession --- .../implementations/Auth0AuthenticationModule.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/modules/authentication/implementations/Auth0AuthenticationModule.java b/qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/modules/authentication/implementations/Auth0AuthenticationModule.java index 362c9415..baa1be72 100644 --- a/qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/modules/authentication/implementations/Auth0AuthenticationModule.java +++ b/qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/modules/authentication/implementations/Auth0AuthenticationModule.java @@ -313,7 +313,11 @@ public class Auth0AuthenticationModule implements QAuthenticationModuleInterface ////////////////////////////////////////////////////////////// if(getCustomizer() != null) { - getCustomizer().finalCustomizeSession(qInstance, qSession); + QContext.withTemporaryContext(QContext.capture(), () -> + { + QContext.setQSession(getChickenAndEggSession()); + getCustomizer().finalCustomizeSession(qInstance, qSession); + }); } return (qSession);