Browse Source
Merge pull request #16912 from abpframework/identity-server-no-redirect-issue
Add noRedirect parameter
pull/16934/head
Mahmut Gundogdu
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
npm/ng-packs/packages/oauth/src/lib/strategies/auth-password-flow-strategy.ts
|
|
|
@ -67,10 +67,10 @@ export class AuthPasswordFlowStrategy extends AuthFlowStrategy { |
|
|
|
), |
|
|
|
).pipe(pipeToLogin(params, this.injector)); |
|
|
|
} |
|
|
|
logout(queryParams?: Params) { |
|
|
|
logout() { |
|
|
|
const router = this.injector.get(Router); |
|
|
|
|
|
|
|
return from(this.oAuthService.revokeTokenAndLogout(queryParams)).pipe( |
|
|
|
const noRedirectToLogoutUrl = true; |
|
|
|
return from(this.oAuthService.revokeTokenAndLogout(noRedirectToLogoutUrl)).pipe( |
|
|
|
switchMap(() => this.configState.refreshAppState()), |
|
|
|
tap(() => { |
|
|
|
router.navigateByUrl('/'); |
|
|
|
|