File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,12 @@ export class AuthConfig {
15
15
*/
16
16
public postLogoutRedirectUri ? = '' ;
17
17
18
+ /**
19
+ * Defines whether to use 'redirectUri' as a replacement
20
+ * of 'postLogoutRedirectUri' if the latter is not set.
21
+ */
22
+ public redirectUriAsPostLogoutRedirectUriFallback ? = true ;
23
+
18
24
/**
19
25
* The auth server's endpoint that allows to log
20
26
* the user in when using implicit flow.
Original file line number Diff line number Diff line change @@ -2380,7 +2380,7 @@ export class OAuthService extends AuthConfig implements OnDestroy {
2380
2380
params = params . set ( 'id_token_hint' , id_token ) ;
2381
2381
}
2382
2382
2383
- const postLogoutUrl = this . postLogoutRedirectUri || this . redirectUri ;
2383
+ const postLogoutUrl = this . postLogoutRedirectUri || ( this . redirectUriAsPostLogoutRedirectUriFallback && this . redirectUri || '' ) ;
2384
2384
if ( postLogoutUrl ) {
2385
2385
params = params . set ( 'post_logout_redirect_uri' , postLogoutUrl ) ;
2386
2386
You can’t perform that action at this time.
0 commit comments