Logout Behavior (BFF + IdP)
Verified design
- SPA performs hard navigation to
/auth/logout?everywhere=trueand clears any local UI auth state. - BFF invalidates Redis session, clears the
bff_sessioncookie, and serves an intermediate HTML page that redirects to the IdP end_session endpoint (with meta-refresh fallback). - BFF forces
post_logout_redirect_uritohttps://<bff_host>/auth/loginto avoid landing on protected SPA routes. - Back-compat shims exist under
/api/auth/logoutdelegating to/auth/logout.