Skip to content

Sb logout#133

Open
sbagg wants to merge 2 commits into
sandboxfrom
sb-logout
Open

Sb logout#133
sbagg wants to merge 2 commits into
sandboxfrom
sb-logout

Conversation

@sbagg

@sbagg sbagg commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates client-side logout behavior so that logout can be triggered via routing and so the Keycloak client logs the user out (via redirect) when token refresh fails.

Changes:

  • Update AppStateModel to use AuthModel.logout() when routing to /logout.
  • Enable Keycloak onAuthRefreshError handler to redirect to the logged-out page via AuthModel.logout(true).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
services/app/client/src/models/AppStateModel.js Routes /logout to AuthModel.logout() by injecting/using AuthModel within the app state model.
services/app/client/src/elements/ucdlib-iam-app.js Enables Keycloak onAuthRefreshError handler to trigger logout redirect behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 25 to 28
set(update) {
if ( update.location.path.length && update.location.path[0] == 'logout' ){
this.logout();
this.AuthModel.logout();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants