Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf021fb0

Browse files
authored
Merge pull requestDuendeArchive#305 from chaffeqa/patch-1
signoutRedirect respect post_logout_redirect_uri
2 parents2262802 +bd9125f commitf021fb0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

‎src/UserManager.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,18 @@ export default class UserManager extends OidcClient {
255255
returnuser;
256256
});
257257
}
258-
signoutRedirect(args){
258+
signoutRedirect(args={}){
259259
Log.debug("UserManager.signoutRedirect");
260+
letpostLogoutRedirectUri=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
returnthis._signoutStart(args,this._redirectNavigator).then(()=>{
261271
Log.info("signoutRedirect successful");
262272
});

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp