[GH-ISSUE #4346] [sso] Allow static OIDC providers in SSO plugin config #9907

Closed
opened 2026-04-13 05:43:22 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @flowhorn on GitHub (Sep 1, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/4346

Is this suited for GitHub?

  • Yes

Feature request: Static OIDC provider configuration

Problem

When using custom OpenID Connect (OIDC) providers, they currently have to be registered dynamically through the API.
This is error-prone and makes working with them more difficult than necessary, especially in server-side or infrastructure-as-code setups.

Proposed solution

Allow OIDC providers to be declared directly in the SSOOptions at initialization.
These providers should not be stored in the database, but instead behave like built-in social providers (GitHub, Google, etc.), so they can be easily changed and version-controlled.

Alternatives considered

  • Improving the registration experience (e.g. removing the requirement for a logged-in user, or allowing true server-side admin registration).

Additional context

Currently, registering providers requires a logged-in session, which makes it hard to bootstrap providers from the server side at startup. This blocks clean deployments and automation.

Originally created by @flowhorn on GitHub (Sep 1, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/4346 ### Is this suited for GitHub? - [x] Yes ### Feature request: Static OIDC provider configuration #### Problem When using custom OpenID Connect (OIDC) providers, they currently have to be registered dynamically through the API. This is error-prone and makes working with them more difficult than necessary, especially in server-side or infrastructure-as-code setups. #### Proposed solution Allow OIDC providers to be declared directly in the `SSOOptions` at initialization. These providers should not be stored in the database, but instead behave like built-in social providers (GitHub, Google, etc.), so they can be easily changed and version-controlled. #### Alternatives considered - Improving the registration experience (e.g. removing the requirement for a logged-in user, or allowing true server-side admin registration). #### Additional context Currently, registering providers requires a logged-in session, which makes it hard to bootstrap providers from the server side at startup. This blocks clean deployments and automation.
GiteaMirror added the locked label 2026-04-13 05:43:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#9907