Skip to content

feat: call /authorize/resume after login to complete deferred OIDC flow#1756

Open
Kalabint wants to merge 4 commits into
traccar:masterfrom
Kalabint:fix/oidc-pending-auth
Open

feat: call /authorize/resume after login to complete deferred OIDC flow#1756
Kalabint wants to merge 4 commits into
traccar:masterfrom
Kalabint:fix/oidc-pending-auth

Conversation

@Kalabint

Copy link
Copy Markdown
Contributor

After login, call /authorize/resume to complete a pending OIDC flow before
falling through to normal navigation. Wrapped in try/catch so a missing or
failing endpoint doesn't break non-OIDC logins.

Pair with traccar PR #5852

After a successful POST /api/session, call GET /api/oidc/authorize/resume.
If the server returns a JSON body with a location field, redirect the browser
there to complete a pending OIDC authorization flow. Returns 204 when no
pending authorization exists, in which case the normal postLogin navigation
path is used unchanged.

The fetch is wrapped in try/catch so a network error or missing endpoint
does not abort the login — the user's session is already established at
that point.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant