[PR #5945] [MERGED] fix(odic-provider): default options #6340

Closed
opened 2026-03-13 12:55:22 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5945
Author: @himself65
Created: 11/13/2025
Status: Merged
Merged: 11/13/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/11/12/opts


📝 Commits (3)

  • 5c1e311 fix(odic-provider): default options
  • 17f840d test: fix
  • 9ce915f Update packages/better-auth/src/plugins/oidc-provider/index.ts

📊 Changes

2 files changed (+54 additions, -27 deletions)

View changed files

📝 packages/better-auth/src/plugins/oidc-provider/index.ts (+27 -27)
📝 packages/better-auth/src/plugins/oidc-provider/oidc.test.ts (+27 -0)

📄 Description

Summary by cubic

Set sane defaults for the OIDC provider using defu and expose the resolved config via provider.options. Enables dynamic client registration by default and ensures all checks use the merged options.

  • New Features

    • provider.options getter returns the effective OIDC config.
    • Default allowDynamicClientRegistration set to true.
    • Snapshot test added to validate default options.
  • Refactors

    • Replaced manual option merging with defu and centralized to opts.
    • Switched all checks to use opts (PKCE, JWT signing, claims, client ID/secret generation).
    • metadata.SERVER_ONLY now reflects allowDynamicClientRegistration.

Written for commit 9ce915fcdb. Summary will update automatically on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/5945 **Author:** [@himself65](https://github.com/himself65) **Created:** 11/13/2025 **Status:** ✅ Merged **Merged:** 11/13/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/11/12/opts` --- ### 📝 Commits (3) - [`5c1e311`](https://github.com/better-auth/better-auth/commit/5c1e31164604a61ab4fe7f017adc099d6cf51168) fix(odic-provider): default options - [`17f840d`](https://github.com/better-auth/better-auth/commit/17f840d1323f6c1cbef982fec64dca7f92e29fc9) test: fix - [`9ce915f`](https://github.com/better-auth/better-auth/commit/9ce915fcdbe41ebc9e472733f2fa175d3a82b602) Update packages/better-auth/src/plugins/oidc-provider/index.ts ### 📊 Changes **2 files changed** (+54 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/oidc-provider/index.ts` (+27 -27) 📝 `packages/better-auth/src/plugins/oidc-provider/oidc.test.ts` (+27 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Set sane defaults for the OIDC provider using defu and expose the resolved config via provider.options. Enables dynamic client registration by default and ensures all checks use the merged options. - **New Features** - provider.options getter returns the effective OIDC config. - Default allowDynamicClientRegistration set to true. - Snapshot test added to validate default options. - **Refactors** - Replaced manual option merging with defu and centralized to opts. - Switched all checks to use opts (PKCE, JWT signing, claims, client ID/secret generation). - metadata.SERVER_ONLY now reflects allowDynamicClientRegistration. <sup>Written for commit 9ce915fcdbe41ebc9e472733f2fa175d3a82b602. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 12:55: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#6340