From 1cc55d4a05490789700027465257d5d44f873cb5 Mon Sep 17 00:00:00 2001 From: chrisala Date: Wed, 29 Jan 2025 14:59:12 +1100 Subject: [PATCH] java17 / ala security 6.4.0 #3421 --- .../au/org/ala/fieldcapture/ParatooIntegrationSpec.groovy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/integration-test/groovy/au/org/ala/fieldcapture/ParatooIntegrationSpec.groovy b/src/integration-test/groovy/au/org/ala/fieldcapture/ParatooIntegrationSpec.groovy index 9c5167c68..d1f37805e 100644 --- a/src/integration-test/groovy/au/org/ala/fieldcapture/ParatooIntegrationSpec.groovy +++ b/src/integration-test/groovy/au/org/ala/fieldcapture/ParatooIntegrationSpec.groovy @@ -17,6 +17,7 @@ import org.pac4j.core.context.WebContext import org.pac4j.jee.context.JEEContextFactory import org.pac4j.jee.context.JEEFrameworkParameters import org.pac4j.jee.context.session.JEESessionStore +import org.pac4j.jee.context.session.JEESessionStoreFactory import org.pac4j.oidc.config.OidcConfiguration import org.springframework.mock.web.MockHttpServletRequest import org.springframework.mock.web.MockHttpServletResponse @@ -63,7 +64,8 @@ class ParatooIntegrationSpec extends StubbedCasSpec implements GrailsUnitTest { new JEEFrameworkParameters(request, response) } } - def sessionStore = JEESessionStore.INSTANCE + JEEFrameworkParameters params = new JEEFrameworkParameters(request, response) + def sessionStore = JEESessionStoreFactory.INSTANCE.newSessionStore(params) def tokenClient = new TokenClient(oidcConfiguration) def tokenService = new TokenService(config, oidcConfiguration, pac4jContextProvider, sessionStore, tokenClient, testConfig.webservice["client-id"], testConfig.webservice["client-secret"], testConfig.webservice["jwt-scopes"], false)