[PR #5977] [CLOSED] demo(odic-provider): init oidc provider demo #6357

Closed
opened 2026-03-13 12:55:51 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5977
Author: @himself65
Created: 11/14/2025
Status: Closed

Base: canaryHead: himself65/2025/11/13/oauth-provider-demo


📝 Commits (1)

  • d7cb0f7 demo(odic-provider): init oidc provider demo

📊 Changes

22 files changed (+3089 additions, -45 deletions)

View changed files

demo/oidc/eslint.config.mjs (+18 -0)
demo/oidc/next-env.d.ts (+6 -0)
demo/oidc/next.config.ts (+5 -0)
demo/oidc/package.json (+29 -0)
demo/oidc/postcss.config.mjs (+7 -0)
demo/oidc/public/file.svg (+1 -0)
demo/oidc/public/globe.svg (+1 -0)
demo/oidc/public/next.svg (+1 -0)
demo/oidc/public/vercel.svg (+1 -0)
demo/oidc/public/window.svg (+1 -0)
demo/oidc/src/app/api/auth/[...all]/route.ts (+4 -0)
demo/oidc/src/app/consent/page.tsx (+126 -0)
demo/oidc/src/app/favicon.ico (+0 -0)
demo/oidc/src/app/globals.css (+26 -0)
demo/oidc/src/app/layout.tsx (+34 -0)
demo/oidc/src/app/page.tsx (+209 -0)
demo/oidc/src/app/register-client/page.tsx (+243 -0)
demo/oidc/src/app/sign-in/page.tsx (+124 -0)
demo/oidc/src/lib/auth-client.ts (+7 -0)
demo/oidc/src/lib/auth.ts (+17 -0)

...and 2 more files

📄 Description

Summary by cubic

Adds a Next.js demo OIDC provider using better-auth, with email/password login, user consent, and dynamic client registration. This provides a working UI and API endpoints to exercise OAuth 2.0 and OpenID Connect flows.

  • New Features

    • New app under demo/oidc using Tailwind CSS.
    • Configures better-auth with oidcProvider (login at /sign-in, consent at /consent) and SQLite (better-sqlite3).
    • Exposes OAuth2/OIDC endpoints under /api/auth via toNextJsHandler.
    • UI pages for sign-in, consent, and client registration (shows client_id/secret).
    • Auth client set up with NEXT_PUBLIC_BETTER_AUTH_URL (defaults to http://localhost:3000).
  • Dependencies

    • Adds better-auth (core, next-js client/plugins) and better-sqlite3.
    • Next 16, React 19, Tailwind CSS 4.
    • ESLint 9 and TypeScript 5.

Written for commit d7cb0f71e8. Summary will update automatically on new commits.


🔄 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/5977 **Author:** [@himself65](https://github.com/himself65) **Created:** 11/14/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `himself65/2025/11/13/oauth-provider-demo` --- ### 📝 Commits (1) - [`d7cb0f7`](https://github.com/better-auth/better-auth/commit/d7cb0f71e8ee7f360a337a5466dcd7069c47cd14) demo(odic-provider): init oidc provider demo ### 📊 Changes **22 files changed** (+3089 additions, -45 deletions) <details> <summary>View changed files</summary> ➕ `demo/oidc/eslint.config.mjs` (+18 -0) ➕ `demo/oidc/next-env.d.ts` (+6 -0) ➕ `demo/oidc/next.config.ts` (+5 -0) ➕ `demo/oidc/package.json` (+29 -0) ➕ `demo/oidc/postcss.config.mjs` (+7 -0) ➕ `demo/oidc/public/file.svg` (+1 -0) ➕ `demo/oidc/public/globe.svg` (+1 -0) ➕ `demo/oidc/public/next.svg` (+1 -0) ➕ `demo/oidc/public/vercel.svg` (+1 -0) ➕ `demo/oidc/public/window.svg` (+1 -0) ➕ `demo/oidc/src/app/api/auth/[...all]/route.ts` (+4 -0) ➕ `demo/oidc/src/app/consent/page.tsx` (+126 -0) ➕ `demo/oidc/src/app/favicon.ico` (+0 -0) ➕ `demo/oidc/src/app/globals.css` (+26 -0) ➕ `demo/oidc/src/app/layout.tsx` (+34 -0) ➕ `demo/oidc/src/app/page.tsx` (+209 -0) ➕ `demo/oidc/src/app/register-client/page.tsx` (+243 -0) ➕ `demo/oidc/src/app/sign-in/page.tsx` (+124 -0) ➕ `demo/oidc/src/lib/auth-client.ts` (+7 -0) ➕ `demo/oidc/src/lib/auth.ts` (+17 -0) _...and 2 more files_ </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Adds a Next.js demo OIDC provider using better-auth, with email/password login, user consent, and dynamic client registration. This provides a working UI and API endpoints to exercise OAuth 2.0 and OpenID Connect flows. - **New Features** - New app under demo/oidc using Tailwind CSS. - Configures better-auth with oidcProvider (login at /sign-in, consent at /consent) and SQLite (better-sqlite3). - Exposes OAuth2/OIDC endpoints under /api/auth via toNextJsHandler. - UI pages for sign-in, consent, and client registration (shows client_id/secret). - Auth client set up with NEXT_PUBLIC_BETTER_AUTH_URL (defaults to http://localhost:3000). - **Dependencies** - Adds better-auth (core, next-js client/plugins) and better-sqlite3. - Next 16, React 19, Tailwind CSS 4. - ESLint 9 and TypeScript 5. <sup>Written for commit d7cb0f71e8ee7f360a337a5466dcd7069c47cd14. Summary will update automatically on new commits.</sup> <!-- 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-03-13 12:55:51 -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#6357