Commit 54b12c1 1 parent 616c466 commit 54b12c1 Copy full SHA for 54b12c1
File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -144,8 +144,12 @@ export const requestSingleSignOn = async () => {
144
144
// and if feature flag for OIDC Phase 2 is enabled - isAuthEnabled
145
145
if ( isLoggedInCookie && ! isCallbackPage && ! isEndpointPage && ! isClientAccountsPopulated && isAuthEnabled ) {
146
146
const currentLanguage = Language . get ( ) ;
147
+ const urlParams = new URLSearchParams ( window . location . search ) ;
148
+ const account = sessionStorage . getItem ( 'account' ) ||
149
+ urlParams . get ( 'account' ) ||
150
+ localStorage . getItem ( 'account' ) ;
147
151
await requestOidcAuthentication ( {
148
- redirectCallbackUri : `${ window . location . origin } /${ currentLanguage } /callback` ,
152
+ redirectCallbackUri : `${ window . location . origin } /${ currentLanguage } /callback?account= ${ account } ` ,
149
153
} ) ;
150
154
}
151
155
} ;
You can’t perform that action at this time.
0 commit comments