[PR #1446] [MERGED] fix(oidc-plugin): user info endpoint casing to match OIDC spec #3811

Closed
opened 2026-03-13 11:14:30 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1446
Author: @stephenlacy
Created: 2/14/2025
Status: Merged
Merged: 2/15/2025
Merged by: @Bekacru

Base: mainHead: oidc-spec


📝 Commits (1)

  • 798dd43 fix(oidc-plugin): user info endpoint casing to match OIDC spec

📊 Changes

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

View changed files

📝 packages/better-auth/src/plugins/oidc-provider/index.ts (+1 -1)
📝 packages/better-auth/src/plugins/oidc-provider/types.ts (+1 -1)

📄 Description

The userinfo_endpoint key in an oidc discovery endpoint should be lowercase snake_case.

When using better-auth with the DotNET OIDC library it was throwing an error when it was unable to find the user info endpoint: https://learn.microsoft.com/en-us/dotnet/api/microsoft.identitymodel.protocols.openidconnect.openidconnectconfiguration.userinfoendpoint?view=msal-web-dotnet-latest#microsoft-identitymodel-protocols-openidconnect-openidconnectconfiguration-userinfoendpoint

Reference: https://swagger.io/docs/specification/v3_0/authentication/openid-connect-discovery/


🔄 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/1446 **Author:** [@stephenlacy](https://github.com/stephenlacy) **Created:** 2/14/2025 **Status:** ✅ Merged **Merged:** 2/15/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `oidc-spec` --- ### 📝 Commits (1) - [`798dd43`](https://github.com/better-auth/better-auth/commit/798dd43eace1cb5cbc7843c0aa9ab39b477f516c) fix(oidc-plugin): user info endpoint casing to match OIDC spec ### 📊 Changes **2 files changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/oidc-provider/index.ts` (+1 -1) 📝 `packages/better-auth/src/plugins/oidc-provider/types.ts` (+1 -1) </details> ### 📄 Description The `userinfo_endpoint` key in an oidc discovery endpoint should be lowercase snake_case. When using better-auth with the DotNET OIDC library it was throwing an error when it was unable to find the user info endpoint: https://learn.microsoft.com/en-us/dotnet/api/microsoft.identitymodel.protocols.openidconnect.openidconnectconfiguration.userinfoendpoint?view=msal-web-dotnet-latest#microsoft-identitymodel-protocols-openidconnect-openidconnectconfiguration-userinfoendpoint Reference: https://swagger.io/docs/specification/v3_0/authentication/openid-connect-discovery/ --- <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 11:14:30 -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#3811