Atomic Angular — Doc interne

Signed Out

The post-logout confirmation shown on /logout — breaks the re-authentication loop that rendering the sign-in form there would cause in external auth modes.

SignedOut is the post-logout confirmation shown on the /logout route by AuthPageComponent. It states that the session has ended and offers a single explicit action to sign in again.

Why this view exists

In the external authentication modes (sso, oauth, saml, bearer), Sign In starts the handshake as soon as it mounts. Rendering the sign-in form on /logout would therefore re-authenticate the user immediately — a spinner that loops straight back in, defeating the logout. This view breaks that loop.

Minimal example

Routed automatically by AuthPageComponent
app.routes.ts
import { AuthPageComponent } from "@sinequa/atomic-angular";
import type { Routes } from "@angular/router";

export const routes: Routes = [{ path: "logout", component: AuthPageComponent }];

How it works

yes no /logout route AuthPageComponent routeConfig.path === logout? SignedOutComponent SignInComponent signInAgain() navigate to loginPath, returnUrl: /

The returnUrl is not decorative: in the external modes, the sign-in screen only navigates away once the handshake completes if a returnUrl is present — without one it sits on the loader forever.

Options

This component has no inputs or outputs of its own — its only public surface is signInAgain(): void, navigating to loginPath (default /login) with returnUrl: "/".

Pitfalls

What's next

On this page