UI: Add OIDC login flow to frontend #40
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The backend OIDC token exchange is implemented (
a4de2a7). The SPA needs to support the OIDC authorization code flow alongside the existing local login.Requirements
GET /api/v1/auth/oidc/config— returns 404 if disabled)response_type=code,client_id,redirect_uri, andscope=openid email profilecodefrom URL params andPOST /api/v1/auth/oidc/callbackwith{ code, redirectUri }accessToken/refreshTokenthe same way as local loginNotes
/auth/oidc/configendpoint returns{ issuer, clientId, authorizationEndpoint }— everything the SPA needs to build the redirect URLAlready implemented:
OidcCallback.tsx, OIDC flow inLoginPage.tsx,/oidc/callbackroute in router.