You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/core/components/front-channel-logout.component.md
+9-43Lines changed: 9 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ Last reviewed: 2025-10-24
7
7
8
8
# [Front Channel Logout component](../../../lib/core/src/lib/auth/oidc/front-channel-logout.component.ts"Defined in front-channel-logout.component.ts")
9
9
10
-
Handles an OpenID Connect (OIDC) Front-Channel Logout request by validating issuer and session identifiers and triggering a local logout when they match.
10
+
Handles an OpenID Connect (OIDC) Front-Channel Logout request by always triggering a local logout when the route is hit.
On initialisation the component compares those query parameters with locally stored values provided by `AuthService` and calls `logout()` if both match.
37
+
On initialisation the component always calls `logout()` via `AuthService`, regardless of any query parameters.
42
38
43
39
## Details
44
40
45
41
### What is Front-Channel Logout?
46
42
47
43
Front-Channel Logout is part of the OIDC specification. The Identity Provider notifies relying parties (your SPA) of a logout by issuing an HTTP(S) request (often via an iframe). The client application must validate the request and clear its own session.
48
44
49
-
### How matching works
50
-
51
-
Inside `ngOnInit` the component:
45
+
### How it works
52
46
53
-
1. Reads `iss` and `sid` from `ActivatedRoute.snapshot.queryParamMap`.
54
-
2. Retrieves the stored issuer and session id via `AuthService.getStoredIssuer()` and `AuthService.getStoredSessionId()`.
55
-
3. Compares both pairs. Logout is executed only if:
56
-
- storedIssuer === issuerParam AND
57
-
- storedSessionId === sessionIdParam (and none are falsy).
0 commit comments