[PR #5783] fix(mcp): pass oidc config to oauth-authorization-server route #14467

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

Original Pull Request: https://github.com/better-auth/better-auth/pull/5783

State: closed
Merged: No


Fixes bug where oidcConfig options were not correctly passed to getMCPProviderMetadata utility, resulting in /.well-known/oauth-authorization-server not reflecting custom metadata options.


Addresses


Summary by cubic

Fixed OIDC config passthrough in the MCP plugin so /.well-known/oauth-authorization-server returns custom provider metadata as expected.

  • Bug Fixes
    • Pass opts (with oidcConfig) to getMCPProviderMetadata.
    • Assert OIDC options with satisfies OIDCOptions for type safety and correct scopes.

Written for commit 961b9b4741. Summary will update automatically on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5783 **State:** closed **Merged:** No --- Fixes bug where `oidcConfig` options were not correctly passed to `getMCPProviderMetadata` utility, resulting in `/.well-known/oauth-authorization-server` not reflecting custom metadata options. --- Addresses - #5782 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixed OIDC config passthrough in the MCP plugin so /.well-known/oauth-authorization-server returns custom provider metadata as expected. - **Bug Fixes** - Pass opts (with oidcConfig) to getMCPProviderMetadata. - Assert OIDC options with satisfies OIDCOptions for type safety and correct scopes. <sup>Written for commit 961b9b4741ea2634f631e097917663d173e87ae0. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 09:29: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#14467