Repository navigation
feat(auth): logoutRedirect hook — sign out at the identity provider too - #74
Merged
Merged
Conversation
Admin::logoutRedirect() registers per-panel resolvers of where the browser goes after a sign-out. They run before the session is cleared, so an SSO package can read the ID token it kept at sign-in. auth/logout answers with payload.redirect, and the SPA follows it with a full navigation instead of opening its own login page. Only absolute http(s) addresses and paths are followed; a resolver that throws is reported and skipped. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A generic hook for RP-initiated logout (needed by laravel-admin-oidc).
Admin::logoutRedirect(callable)/Auth\LogoutRedirectRegistry: per-panel resolvers, run before the session is cleared; the first followable address (absolute http(s) or a path) wins, a throwing resolver is reported and skipped.auth/logoutanswers withpayload.redirect(null when nothing is registered — backward compatible).auth.logout()returns the address;UserMenufollows it withwindow.location.assign, otherwise opens the login page as before.🤖 Generated with Claude Code