implementing-fsa-logout
OfficialSecure browser logout for Scalekit FSA apps
System Documentation
What problem does it solve?
Web applications that rely on Scalekit OIDC SSO often fail to securely terminate sessions, leaving lingering cookies or relying on provider sessions. This Skill provides a robust logout flow that clears the application's session cookies and redirects the user to Scalekit's /oidc/logout endpoint to invalidate the Scalekit session.
Core Features & Use Cases
- Unified logout endpoint: Exposes a GET /logout route to terminate local session data and trigger Scalekit's logout.
- Secure token handling: Reads idToken before clearing cookies to supply id_token_hint to Scalekit's logout.
- Redirect-based invalidation: Uses a browser redirect to Scalekit's /oidc/logout to ensure the Scalekit session is ended.
- Post-logout redirect control: Requires post_logout_redirect_uri to be allowlisted in the Scalekit dashboard and navigates users back to a safe URL.
- Cross-stack templates: Includes implementation templates for Node.js/Express, Python/Flask, Go/Gin, and Java/Spring Boot.
Quick Start
Add a GET /logout route that reads the idToken before clearing cookies, builds the Scalekit logout URL, clears session cookies, and redirects the browser to the Scalekit logout URL.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: implementing-fsa-logout Download link: https://github.com/scalekit-inc/github-copilot-authstack/archive/main.zip#implementing-fsa-logout Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.