File tree 1 file changed +11
-1
lines changed
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 {
255
255
return user ;
256
256
} ) ;
257
257
}
258
- signoutRedirect ( args ) {
258
+ signoutRedirect ( args = { } ) {
259
259
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
+ }
260
270
return this . _signoutStart ( args , this . _redirectNavigator ) . then ( ( ) => {
261
271
Log . info ( "signoutRedirect successful" ) ;
262
272
} ) ;
You can’t perform that action at this time.
0 commit comments