From 1339a2bacb62d79d88a19962a3d23d6e5afc158d Mon Sep 17 00:00:00 2001 From: Jack Brinkman Date: Mon, 29 Jul 2024 15:18:18 +1000 Subject: [PATCH] #1616 Changed webservice["client-secret"] for security.oidc.secret in setupTokenForSystem method of StubbedCasSpec --- .../groovy/au/org/ala/biocollect/StubbedCasSpec.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/integration-test/groovy/au/org/ala/biocollect/StubbedCasSpec.groovy b/src/integration-test/groovy/au/org/ala/biocollect/StubbedCasSpec.groovy index 1d07d8511..a53d686f4 100644 --- a/src/integration-test/groovy/au/org/ala/biocollect/StubbedCasSpec.groovy +++ b/src/integration-test/groovy/au/org/ala/biocollect/StubbedCasSpec.groovy @@ -216,7 +216,7 @@ class StubbedCasSpec extends BiocollectFunctionalTest { // The test config isn't a normal grails config object (probably need to to into why) so getProperty doesn't work. Map testConfig = getTestConfig() String clientId = testConfig.security.oidc.clientId - String clientSecret = testConfig.webservice["client-secret"] + String clientSecret = testConfig.security.oidc.secret String base64EncodedAuth = "Basic " + "${clientId}:${clientSecret}".bytes.encodeBase64().toString() List roles = ["ROLE_USER"]