Repository navigation
Implement OIDC authentication with anonymous viewer mode - #202
Merged
Merged
Conversation
Replace the fake client-side demo login with the real OIDC authorization-code flow against the backend auth API (SR-001, SR-010, SR-011): - typed auth API module (login, code exchange, refresh, logout) through the shared envelope-unwrapping axios client - JWT decode helper mapping session-token claims to the dashboard user; the backend-issued role claim is authoritative (SR-002) and signatures are never verified client-side - auth store boots into the anonymous viewer role (SR-001), restores a persisted session, and attempts a single refresh when the stored token is expired - /auth/callback route exchanges the authorization code exactly once (StrictMode safe), renders a retryable error state, and returns the user to the page they came from - login page requests the opaque redirect_url, preserves the return location, reuses the app logo, offers a way back to the dashboard for anonymous browsing, and redirects authenticated users home - API client retries a 401 once after a token refresh, otherwise offers the login flow with returnTo; auth endpoints manage their own errors so the callback page cannot redirect-loop - top bar shows a sign-in link for anonymous users and a profile chip (avatar, friendly label, color-coded role, sign out) for authenticated ones; opaque subject ids stay out of the display and remain available in the tooltip - the client-side demo login is removed entirely: it installed a fake admin token that the backend correctly rejects, and the server-side demo-login endpoint is no longer called Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
sarroutbi
force-pushed
the
oidc-authentication
branch
from
December 2, 2026 14:20
7101459 to
9a1a43d
Compare
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.
Replace the fake client-side demo login with the real OIDC authorization-code flow against the backend auth API (SR-001, SR-010, SR-011):