[PR #3692] [CLOSED] feat: add client assertion support to OAuth2 configuration #30558

Closed
opened 2026-04-17 21:36:43 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3692
Author: @nahom-d54
Created: 7/29/2025
Status: Closed

Base: mainHead: main


📝 Commits (10+)

  • fb2f70d feat: add client assertion support to OAuth2 configuration
  • fe0c696 feat: make clientSecret optional in OAuth configuration
  • d63b3d6 chore: release v1.3.4
  • 56b8ae6 chore: release v1.3.4
  • 1e84669 chore: release v1.3.4
  • 15f54af chore: release v1.3.4
  • 174183e chore: release v1.3.4
  • 0cd84af chore: release v1.3.4
  • 8971aed chore: release v1.3.4
  • d321009 fix: remove unnecessary newline before the generic OAuth plugin documentation

📊 Changes

3 files changed (+28 additions, -5 deletions)

View changed files

📝 packages/better-auth/src/oauth2/types.ts (+11 -1)
📝 packages/better-auth/src/oauth2/validate-authorization-code.ts (+5 -0)
📝 packages/better-auth/src/plugins/generic-oauth/index.ts (+12 -4)

📄 Description

Added Support for assertion framework
@see https://datatracker.ietf.org/doc/html/rfc7521
For more undertanding


Summary by cubic

Added support for OAuth2 client assertion authentication, allowing use of JWT-based client authentication instead of a client secret.

  • New Features
    • Added clientAssertion and clientAssertionType options to OAuth2 configuration.
    • Made clientSecret optional when using client assertions.

🔄 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/3692 **Author:** [@nahom-d54](https://github.com/nahom-d54) **Created:** 7/29/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (10+) - [`fb2f70d`](https://github.com/better-auth/better-auth/commit/fb2f70dc82a28485973b72db591d12a74698d5f1) feat: add client assertion support to OAuth2 configuration - [`fe0c696`](https://github.com/better-auth/better-auth/commit/fe0c696ade18e54f520ba0cae63ecb643a7103d6) feat: make clientSecret optional in OAuth configuration - [`d63b3d6`](https://github.com/better-auth/better-auth/commit/d63b3d64cf03ab59b41351fc2227453e49902d9d) chore: release v1.3.4 - [`56b8ae6`](https://github.com/better-auth/better-auth/commit/56b8ae6fb2895aabadf7d819c31c8a7f678ffe5e) chore: release v1.3.4 - [`1e84669`](https://github.com/better-auth/better-auth/commit/1e84669e2c3597d886e45dd0cfa7d5406a8d8433) chore: release v1.3.4 - [`15f54af`](https://github.com/better-auth/better-auth/commit/15f54af4eb73f077f7dfc72b88ab4a50d98054c4) chore: release v1.3.4 - [`174183e`](https://github.com/better-auth/better-auth/commit/174183e09c0a6f4c673febf2fa5986acebade08d) chore: release v1.3.4 - [`0cd84af`](https://github.com/better-auth/better-auth/commit/0cd84af3dd67147092209aae3a51dcc53b4a05ec) chore: release v1.3.4 - [`8971aed`](https://github.com/better-auth/better-auth/commit/8971aed180ae1e30d05faf1c8d2409bc3dc3c96b) chore: release v1.3.4 - [`d321009`](https://github.com/better-auth/better-auth/commit/d32100904cab2108d4a282cd38a2f311c66ce131) fix: remove unnecessary newline before the generic OAuth plugin documentation ### 📊 Changes **3 files changed** (+28 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/oauth2/types.ts` (+11 -1) 📝 `packages/better-auth/src/oauth2/validate-authorization-code.ts` (+5 -0) 📝 `packages/better-auth/src/plugins/generic-oauth/index.ts` (+12 -4) </details> ### 📄 Description Added Support for assertion framework @see https://datatracker.ietf.org/doc/html/rfc7521 For more undertanding <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added support for OAuth2 client assertion authentication, allowing use of JWT-based client authentication instead of a client secret. - **New Features** - Added clientAssertion and clientAssertionType options to OAuth2 configuration. - Made clientSecret optional when using client assertions. <!-- 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-04-17 21:36:44 -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#30558