Skip to content

Commit

Permalink
Merge pull request #151 from eclipse-tractusx/hotfix/auth-path
Browse files Browse the repository at this point in the history
chore: fixed auth path in const from frontend
  • Loading branch information
matbmoser authored Dec 14, 2023
2 parents ee78fa5 + 3204c90 commit 43db85e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/service.const.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ if (window.location.href.includes("localhost")) { //Modify credentials for local
INIT_OPTIONS["url"] = (IDP_URL != null) ? IDP_URL : "http://localhost:8088/auth/", //Point to IDP service if specified or localhost
REDIRECT_URI = "http://localhost:8080/";
} else {
if(!IDP_URL.includes("auth/")){
INIT_OPTIONS["url"] = IDP_URL + "auth/";
if(!IDP_URL.includes("/auth/")){
INIT_OPTIONS["url"] = IDP_URL + "/auth/";
}else{
INIT_OPTIONS["url"] = IDP_URL;
}
Expand Down

0 comments on commit 43db85e

Please sign in to comment.