Skip to content

Commit

Permalink
fix(demo): url in dynamic instead of hard coded (#707)
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-chervet authored Mar 1, 2022
1 parent 2b09516 commit b314815
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/context/src/MultiAuth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ if(!sessionStorage.configurationName){

export const MultiAuthContainer = () => {
const [configurationName, setConfigurationName] = useState(sessionStorage.configurationName);
const callBack = "http://localhost:4200/multi-auth/authentification/callback2";
const callBack = window.location.origin+"/multi-auth/authentification/callback2";
const configurations = {
"config_1": {...configurationIdentityServer, redirect_uri:callBack},
"config_2": {...configurationIdentityServer, redirect_uri:callBack, scope: 'openid profile email api',}
"config_2": {...configurationIdentityServer, redirect_uri:callBack, scope: 'openid profile email api'}
}
const handleConfigurationChange = (event) => {
const configurationName = event.target.value;
Expand Down

0 comments on commit b314815

Please sign in to comment.