File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -255,8 +255,18 @@ export default class UserManager extends OidcClient {
255255 return user ;
256256 } ) ;
257257 }
258- signoutRedirect ( args ) {
258+ signoutRedirect ( args = { } ) {
259259 Log . debug ( "UserManager.signoutRedirect" ) ;
260+ let postLogoutRedirectUri = args . post_logout_redirect_uri || this . settings . post_logout_redirect_uri ;
261+ if ( postLogoutRedirectUri ) {
262+ args . post_logout_redirect_uri = postLogoutRedirectUri ;
263+ // we're putting a dummy entry in here because we
264+ // need a unique id from the state for notification
265+ // to the parent window, which is necessary if we
266+ // plan to return back to the client after signout
267+ // and so we can close the popup after signout
268+ args . state = args . state || { } ;
269+ }
260270 return this . _signoutStart ( args , this . _redirectNavigator ) . then ( ( ) => {
261271 Log . info ( "signoutRedirect successful" ) ;
262272 } ) ;
You can’t perform that action at this time.
0 commit comments