Skip to content

Commit 71264d1

Browse files
authored
Merge pull request #1009 from damienbod/damien/stop-checksession-local-logout
CheckSessionService keeps polling after logoffLocal() is invoked
2 parents 591cd6a + 28d7d2a commit 71264d1

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

projects/angular-auth-oidc-client/src/lib/logoffRevoke/logoff-revocation.service.ts

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export class LogoffRevocationService {
4545

4646
logoffLocal() {
4747
this.resetAuthDataService.resetAuthorizationData();
48+
this.checkSessionService.stop();
4849
}
4950

5051
// The refresh token and and the access token are revoked on the server. If the refresh token does not exist

projects/sample-code-flow-http-config/src/app/home/home.component.html

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
<div *ngIf="isAuthenticated$ | async as isAuthenticated; else noAuth">
66
<button (click)="logout()">Logout</button>
7+
<button (click)="logoffLocal()">Logoff Local</button>
78
<button (click)="refreshSession()">refreshSession</button>
89
<hr />
910

projects/sample-code-flow-http-config/src/app/home/home.component.ts

+4
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,8 @@ export class HomeComponent implements OnInit {
3434
logout() {
3535
this.oidcSecurityService.logoff();
3636
}
37+
38+
logoffLocal() {
39+
this.oidcSecurityService.logoffLocal();
40+
}
3741
}

0 commit comments

Comments
 (0)