|
|
@ -50,11 +50,17 @@ export class AuthService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
logout(): Observable<void> { |
|
|
logout(): Observable<void> { |
|
|
|
|
|
const issuer = this.store.selectSnapshot(ConfigState.getDeep('environment.oAuthConfig.issuer')); |
|
|
|
|
|
|
|
|
return this.rest |
|
|
return this.rest |
|
|
.request({ |
|
|
.request( |
|
|
method: 'GET', |
|
|
{ |
|
|
url: '/api/account/logout', |
|
|
method: 'GET', |
|
|
}) |
|
|
url: '/api/account/logout', |
|
|
|
|
|
}, |
|
|
|
|
|
null, |
|
|
|
|
|
issuer, |
|
|
|
|
|
) |
|
|
.pipe( |
|
|
.pipe( |
|
|
switchMap(() => { |
|
|
switchMap(() => { |
|
|
this.oAuthService.logOut(); |
|
|
this.oAuthService.logOut(); |
|
|
|