From 64c9c7d370f1279d034ae5649a07b02ead79e39c Mon Sep 17 00:00:00 2001 From: Jonas Hein Date: Mon, 6 May 2024 14:20:20 +0200 Subject: [PATCH] updated to live unilogIn endpoint --- .../acto/fafnir/sso/provider/UniLoginLightweightProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sso/src/main/java/dk/acto/fafnir/sso/provider/UniLoginLightweightProvider.java b/sso/src/main/java/dk/acto/fafnir/sso/provider/UniLoginLightweightProvider.java index 308fe76..4426b53 100644 --- a/sso/src/main/java/dk/acto/fafnir/sso/provider/UniLoginLightweightProvider.java +++ b/sso/src/main/java/dk/acto/fafnir/sso/provider/UniLoginLightweightProvider.java @@ -56,14 +56,14 @@ public String authenticate(HttpSession session) throws NoSuchAlgorithmException .collect(Collectors.joining())); var scope = "&scope=" + URLEncoder.encode("openid"); var responseMode = "&response_mode=" + URLEncoder.encode("form_post"); - return "https://et-broker.unilogin.dk/auth/realms/broker/protocol/openid-connect" + "/auth?" + responseType + client + redirect + codeChallengeMethod + codeChallenge + nonce + state + scope + responseMode; + return "https://broker.unilogin.dk/auth/realms/broker/protocol/openid-connect" + "/auth?" + responseType + client + redirect + codeChallengeMethod + codeChallenge + nonce + state + scope + responseMode; } public AuthenticationResult callback(UniloginTokenCredentials data, HttpSession session) throws IOException { var UL_CLIENT_ID = System.getenv("UL_CLIENT_ID"); var UL_SECRET = System.getenv("UL_SECRET"); var UL_REDIRECT_URL = System.getenv("FAFNIR_URL") + "/unilogin-lightweight/callback"; - var OID_BASE_URL = "https://et-broker.unilogin.dk/auth/realms/broker/protocol/openid-connect/"; + var OID_BASE_URL = "https://broker.unilogin.dk/auth/realms/broker/protocol/openid-connect/"; var CODE_VERIFIER = (String) session.getAttribute("codeVerifier");