[PR #5811] [MERGED] test: init oidc test with openid-client #6242

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5811
Author: @himself65
Created: 11/6/2025
Status: Merged
Merged: 11/11/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/11/06/test-setup


📝 Commits (4)

📊 Changes

10 files changed (+279 additions, -11 deletions)

View changed files

📝 package.json (+1 -1)
📝 pnpm-lock.yaml (+38 -9)
📝 pnpm-workspace.yaml (+2 -1)
test/fixtures/cert.pem (+21 -0)
test/fixtures/key.pem (+28 -0)
test/package.json (+15 -0)
test/tsconfig.json (+13 -0)
test/unit/oidc/index.spec.ts (+148 -0)
test/vitest.config.ts (+10 -0)
📝 tsconfig.json (+3 -0)

📄 Description

Summary by cubic

Adds OIDC provider unit tests using openid-client with a local HTTPS server to verify discovery metadata, OAuth endpoints, and login redirect behavior.

  • Dependencies

    • Add openid-client (^6.8.1) and @better-fetch/fetch (catalog) to the test workspace.
    • Pin vitest to 3.2.4 in the workspace/catalog.
  • Refactors

    • Update the root test script to run the new test workspace and add a Vitest config to resolve source files in SSR.

Written for commit 8dd4f79c82. 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/5811 **Author:** [@himself65](https://github.com/himself65) **Created:** 11/6/2025 **Status:** ✅ Merged **Merged:** 11/11/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/11/06/test-setup` --- ### 📝 Commits (4) - [`5a87199`](https://github.com/better-auth/better-auth/commit/5a87199329fe4caab83a509614fe1389c7d0467b) test: init oidc test with `openid-client` - [`fa5ae6d`](https://github.com/better-auth/better-auth/commit/fa5ae6da42518761cc4d52c2b9ddfbae5fb59743) fix: lock - [`77ee1a8`](https://github.com/better-auth/better-auth/commit/77ee1a81d284c9700be956a103f8a0683adc1616) chore: update - [`8dd4f79`](https://github.com/better-auth/better-auth/commit/8dd4f79c82520125ca4fbb5f48353ed578105a30) chore: fix ### 📊 Changes **10 files changed** (+279 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `package.json` (+1 -1) 📝 `pnpm-lock.yaml` (+38 -9) 📝 `pnpm-workspace.yaml` (+2 -1) ➕ `test/fixtures/cert.pem` (+21 -0) ➕ `test/fixtures/key.pem` (+28 -0) ➕ `test/package.json` (+15 -0) ➕ `test/tsconfig.json` (+13 -0) ➕ `test/unit/oidc/index.spec.ts` (+148 -0) ➕ `test/vitest.config.ts` (+10 -0) 📝 `tsconfig.json` (+3 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Adds OIDC provider unit tests using openid-client with a local HTTPS server to verify discovery metadata, OAuth endpoints, and login redirect behavior. - **Dependencies** - Add openid-client (^6.8.1) and @better-fetch/fetch (catalog) to the test workspace. - Pin vitest to 3.2.4 in the workspace/catalog. - **Refactors** - Update the root test script to run the new test workspace and add a Vitest config to resolve source files in SSR. <sup>Written for commit 8dd4f79c82520125ca4fbb5f48353ed578105a30. 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:52:09 -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#6242