Post-logout redirect URI not registered for SaaS SPA #54

Closed
opened 2026-04-10 09:56:08 +02:00 by claude · 0 comments
Owner

Problem

The SaaS SPA's post-logout redirect URI (/platform/) is not registered in the Logto SPA application's postLogoutRedirectUris. The registered URI is /platform/login.

This causes OIDC RP-initiated logout to fail with post_logout_redirect_uri not registered when trying to redirect to /platform/.

Expected

Logto bootstrap should register /platform/ as a post-logout redirect URI for the SPA app, or the SPA should use /platform/login as the post-logout redirect.

Steps to reproduce

  1. Log in to SaaS platform
  2. Click user avatar → Logout
  3. Observe the OIDC end-session endpoint returns an error

Scope

Bootstrap script change (docker/logto-bootstrap.sh) or SPA auth config change.

## Problem The SaaS SPA's post-logout redirect URI (`/platform/`) is not registered in the Logto SPA application's `postLogoutRedirectUris`. The registered URI is `/platform/login`. This causes OIDC RP-initiated logout to fail with `post_logout_redirect_uri not registered` when trying to redirect to `/platform/`. ## Expected Logto bootstrap should register `/platform/` as a post-logout redirect URI for the SPA app, or the SPA should use `/platform/login` as the post-logout redirect. ## Steps to reproduce 1. Log in to SaaS platform 2. Click user avatar → Logout 3. Observe the OIDC end-session endpoint returns an error ## Scope Bootstrap script change (`docker/logto-bootstrap.sh`) or SPA auth config change.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cameleer/cameleer-saas#54