[PR #1484] [MERGED] feat: allow header auth for token ednpoint #20728

Closed
opened 2026-04-15 19:53:32 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1484
Author: @t3duk
Created: 2/18/2025
Status: Merged
Merged: 2/20/2025
Merged by: @Bekacru

Base: v1.2Head: feat-oidc-header-auth


📝 Commits (7)

  • c72bba4 feat: allow header auth for token ednpoint
  • 4d6c773 chore: prefer body client_id/secret
  • ea45d55 chore: format
  • 1d3ff98 chore: safety stuff
  • ca77fcf chore: try/catch for base64
  • 9443ec5 chore: if statements follow standards
  • ba9bb44 Merge branch 'better-auth:main' into feat-oidc-header-auth

📊 Changes

1 file changed (+35 additions, -2 deletions)

View changed files

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

📄 Description

should be a small change to allow the header authorization to be used if body does not contain the client id/secret

refer to https://openid.net/specs/openid-connect-core-1_0.html#ClientAuthentication


🔄 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/1484 **Author:** [@t3duk](https://github.com/t3duk) **Created:** 2/18/2025 **Status:** ✅ Merged **Merged:** 2/20/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `v1.2` ← **Head:** `feat-oidc-header-auth` --- ### 📝 Commits (7) - [`c72bba4`](https://github.com/better-auth/better-auth/commit/c72bba4128528438a6dbb32fb826467439656cd7) feat: allow header auth for token ednpoint - [`4d6c773`](https://github.com/better-auth/better-auth/commit/4d6c77342dff7b477dc53101071739b2bbd4e0af) chore: prefer body client_id/secret - [`ea45d55`](https://github.com/better-auth/better-auth/commit/ea45d55cdc65cf80f6fb15d77477febc48035558) chore: format - [`1d3ff98`](https://github.com/better-auth/better-auth/commit/1d3ff98a15a2329aa59096caf461b2d298e7f004) chore: safety stuff - [`ca77fcf`](https://github.com/better-auth/better-auth/commit/ca77fcf11e46afffb0ceb6357b90cf3a30ab373b) chore: try/catch for base64 - [`9443ec5`](https://github.com/better-auth/better-auth/commit/9443ec5fa1bf104d9878b79c4c1bca701e4b7ee0) chore: if statements follow standards - [`ba9bb44`](https://github.com/better-auth/better-auth/commit/ba9bb4466eafade84c4ecb178ef9f33e5f28ea26) Merge branch 'better-auth:main' into feat-oidc-header-auth ### 📊 Changes **1 file changed** (+35 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/oidc-provider/index.ts` (+35 -2) </details> ### 📄 Description should be a small change to allow the header `authorization` to be used if body does not contain the client id/secret refer to https://openid.net/specs/openid-connect-core-1_0.html#ClientAuthentication --- <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-04-15 19:53:32 -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#20728