[PR #765] [MERGED] feat: OIDC Plugin #3471

Closed
opened 2026-03-13 10:54:53 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/765
Author: @Bekacru
Created: 12/4/2024
Status: Merged
Merged: 12/20/2024
Merged by: @Bekacru

Base: mainHead: feat/oidc-plugin


📝 Commits (10+)

📊 Changes

29 files changed (+3051 additions, -47 deletions)

View changed files

demo/nextjs/app/apps/register/page.tsx (+114 -0)
demo/nextjs/app/oauth/authorize/concet-buttons.tsx (+47 -0)
demo/nextjs/app/oauth/authorize/page.tsx (+114 -0)
📝 demo/nextjs/components/sign-in.tsx (+1 -1)
📝 demo/nextjs/lib/auth-client.ts (+4 -0)
📝 demo/nextjs/lib/auth.ts (+6 -18)
📝 docs/components/sidebar-content.tsx (+24 -2)
📝 docs/content/docs/plugins/jwt.mdx (+0 -1)
docs/content/docs/plugins/oidc-provider.mdx (+392 -0)
📝 packages/better-auth/package.json (+19 -0)
📝 packages/better-auth/src/api/index.ts (+4 -0)
📝 packages/better-auth/src/client/plugins/index.ts (+1 -0)
📝 packages/better-auth/src/init.ts (+1 -1)
📝 packages/better-auth/src/oauth2/validate-authorization-code.ts (+1 -0)
📝 packages/better-auth/src/plugins/generic-oauth/index.ts (+25 -19)
📝 packages/better-auth/src/plugins/index.ts (+1 -0)
📝 packages/better-auth/src/plugins/jwt/index.ts (+45 -1)
packages/better-auth/src/plugins/oidc-provider/authorize.ts (+266 -0)
packages/better-auth/src/plugins/oidc-provider/client.ts (+9 -0)
packages/better-auth/src/plugins/oidc-provider/index.ts (+738 -0)

...and 9 more files

📄 Description

A plugin that enables you to have your own OIDC server. It implements OAuth2.1 specification. Includes handling consent screen and login flow.

I'll provide more details once it's fully usable.

closes #160


🔄 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/765 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 12/4/2024 **Status:** ✅ Merged **Merged:** 12/20/2024 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `feat/oidc-plugin` --- ### 📝 Commits (10+) - [`8d78a43`](https://github.com/better-auth/better-auth/commit/8d78a43570d7d50489d88d21dd6ac17c3afd509e) wip - [`8fd717d`](https://github.com/better-auth/better-auth/commit/8fd717d1dcb5b2dc8c5f471e0205db0cdf0a38f8) feat: login promopt and more test - [`07ff681`](https://github.com/better-auth/better-auth/commit/07ff681cf0c2c10d6ea283aa0da2277244ed23d8) Merge branch 'main' into feat/oidc-plugin - [`170ab2a`](https://github.com/better-auth/better-auth/commit/170ab2ae14596ba26a36d510fe1baa10ba5be30b) feat: add pkce support - [`d08c010`](https://github.com/better-auth/better-auth/commit/d08c0106f4171f7d790f00e86979ce6a704c7d3e) Merge branch 'main' into feat/oidc-plugin - [`6381070`](https://github.com/better-auth/better-auth/commit/63810701270a49dfb3a82733552025b0963551ad) chore: lint - [`e9428dd`](https://github.com/better-auth/better-auth/commit/e9428ddd4690b07f17e8ef9980910960523e5c0c) wip - [`20055c7`](https://github.com/better-auth/better-auth/commit/20055c7ea0d61528310e0feb5b3e0c37961f8332) Merge branch 'main' into feat/oidc-plugin - [`c990796`](https://github.com/better-auth/better-auth/commit/c99079674dd429823a758ae23dc99b98fdb8a187) wip - [`9f6f4e3`](https://github.com/better-auth/better-auth/commit/9f6f4e35cd6b21faf900c24e90a4c4c086011cd7) wip ### 📊 Changes **29 files changed** (+3051 additions, -47 deletions) <details> <summary>View changed files</summary> ➕ `demo/nextjs/app/apps/register/page.tsx` (+114 -0) ➕ `demo/nextjs/app/oauth/authorize/concet-buttons.tsx` (+47 -0) ➕ `demo/nextjs/app/oauth/authorize/page.tsx` (+114 -0) 📝 `demo/nextjs/components/sign-in.tsx` (+1 -1) 📝 `demo/nextjs/lib/auth-client.ts` (+4 -0) 📝 `demo/nextjs/lib/auth.ts` (+6 -18) 📝 `docs/components/sidebar-content.tsx` (+24 -2) 📝 `docs/content/docs/plugins/jwt.mdx` (+0 -1) ➕ `docs/content/docs/plugins/oidc-provider.mdx` (+392 -0) 📝 `packages/better-auth/package.json` (+19 -0) 📝 `packages/better-auth/src/api/index.ts` (+4 -0) 📝 `packages/better-auth/src/client/plugins/index.ts` (+1 -0) 📝 `packages/better-auth/src/init.ts` (+1 -1) 📝 `packages/better-auth/src/oauth2/validate-authorization-code.ts` (+1 -0) 📝 `packages/better-auth/src/plugins/generic-oauth/index.ts` (+25 -19) 📝 `packages/better-auth/src/plugins/index.ts` (+1 -0) 📝 `packages/better-auth/src/plugins/jwt/index.ts` (+45 -1) ➕ `packages/better-auth/src/plugins/oidc-provider/authorize.ts` (+266 -0) ➕ `packages/better-auth/src/plugins/oidc-provider/client.ts` (+9 -0) ➕ `packages/better-auth/src/plugins/oidc-provider/index.ts` (+738 -0) _...and 9 more files_ </details> ### 📄 Description A plugin that enables you to have your own OIDC server. It implements OAuth2.1 specification. Includes handling consent screen and login flow. I'll provide more details once it's fully usable. closes #160 --- <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 10:54:53 -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#3471