Skip to content

feat: support OIDC provider login parameter - #137

Merged
qianmoQ merged 2 commits into
devlive-community:devfrom
flyer5200:feature/oidc_login_param
Nov 9, 2026
Merged

qianmoQ merged 2 commits into
devlive-community:devfrom
flyer5200:feature/oidc_login_param

Conversation

@flyer5200

Copy link
Copy Markdown

Changelog category

  • New Feature

Changelog entry

  • Allow clients to choose an OIDC identity source and redirect users directly to its sign-in page.

Affected version

  • 2026.5.0

Background

Applications using an existing OIDC identity provider often want to send users directly to that provider, without asking them to choose a sign-in method on the GrantForge login page. OAuth clients need to express that choice in their authorization request.

Implementation

  • Accept an identity source code through the login page’s provider query parameter, or through provider in the local /oauth2/authorize request. An explicit login-page parameter takes precedence.
  • Reuse the existing federated sign-in endpoint and preserve the complete authorization request, including state, nonce, and PKCE.
  • Validate provider codes, reject ambiguous or invalid nested parameters, and retain the normal error and two-step verification flows.
  • Document direct login and OAuth client usage in English and Chinese.

Validation

  • Authentication view and authorization utility tests: 21 passed.
  • Frontend production build and lint passed.

@qianmoQ
qianmoQ merged commit 12b4f40 into devlive-community:dev Nov 9, 2026
23 checks passed
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