From 065d5ad5dbe67aef2860b60ed682ce8bee169ccc Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Wed, 19 Oct 2022 15:25:11 +0200 Subject: [PATCH] OZG-2904 removed /auth from sso path --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0a5f73bb61..eaef6c3d17 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -585,7 +585,7 @@ String generateCypressConfig(String stage, String bezeichner, String testFolder) String getKeycloakUuid(realm, userName) { def shScript = """curl -H 'Content-Type: application/json' \ -H 'Authorization: bearer ${getKeycloakAccessToken()}' \ - 'https://sso.dev.ozg-sh.de/auth/admin/realms/${realm}/users' + 'https://sso.dev.ozg-sh.de/admin/realms/${realm}/users' """ def users = readJSON text: sh(script: shScript, returnStdout: true) @@ -599,7 +599,7 @@ String getKeycloakUuid(realm, userName) { String getKeycloakAccessToken() { withCredentials([usernamePassword(credentialsId: 'keycloak-login', usernameVariable: 'USER', passwordVariable: 'PASSWORD')]) { - def token = readJSON text: sh (script: 'curl -d "client_id=admin-cli" -d "username=$USER" -d "password=$PASSWORD" -d "grant_type=password" "https://sso.dev.ozg-sh.de/auth/realms/master/protocol/openid-connect/token"', returnStdout: true) + def token = readJSON text: sh (script: 'curl -d "client_id=admin-cli" -d "username=$USER" -d "password=$PASSWORD" -d "grant_type=password" "https://sso.dev.ozg-sh.de/realms/master/protocol/openid-connect/token"', returnStdout: true) return token.access_token } @@ -633,4 +633,4 @@ Void initHelmRepo() { sh 'helm repo add ozg-base-apps-snapshot https://nexus.ozg-sh.de/repository/ozg-base-apps-snapshot --username ${USER} --password ${PASSWORD}' sh 'helm repo add ozg-base-apps https://nexus.ozg-sh.de/repository/ozg-base-apps --username ${USER} --password ${PASSWORD}' } -} \ No newline at end of file +} -- GitLab