Skip to content

v2.2.0 - SSO App Integration

Choose a tag to compare

@tienledigital tienledigital released this 01 Jul 11:03
· 76 commits to main since this release

[2.2.0] - 2026-07-01

Added

  • SSO Integration with Pageel App: Implemented client-to-app handshake and SSO callback mechanism.
    • Added secure GET /api/auth/callback callback route verifying SaaS JWT with 5s timeout.
    • Implemented Cloudflare Service Binding routing with standard HTTP fetch fallback.
    • Implemented secure POST /api/auth/logout clearing local session cookie and safely calling remote logout API.
  • SSO Login UI Toggle: Configured login.astro to detect PAGEEL_APP_URL env variable, toggle off local credential fields, and render a dedicated "Sign In with Pageel App" button redirecting users to the SaaS application.
  • Double-Binding Spec Coverage: Bound all SSO module elements to the new specifications, achieving 100% project-wide CSA spec coverage.
  • Integration Test Suite: Added 7 integration tests in test/auth-bridge.test.ts verifying UI redirects, JWT callbacks, cookie options (SameSite=Lax), and remote logout scenarios.
  • Hotfix: Standardized and normalized SSO Redirect URL generation, preventing double-slash redirects (//login).