Skip to content

Commit

Permalink
updated to live unilogIn endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Hein committed May 6, 2024
1 parent 256bfa3 commit 64c9c7d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 64c9c7d

Please sign in to comment.