[PR #7562] [MERGED] feat(sso): add support for signed SAML AuthnRequests #15648

Closed
opened 2026-04-13 10:09:18 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7562
Author: @Paola3stefania
Created: 1/22/2026
Status: Merged
Merged: 1/27/2026
Merged by: @himself65

Base: canaryHead: feat/sso-signed-authn-requests


📝 Commits (10+)

📊 Changes

6 files changed (+192 additions, -2 deletions)

View changed files

📝 docs/content/docs/plugins/sso.mdx (+18 -2)
📝 packages/sso/src/routes/providers.ts (+3 -0)
📝 packages/sso/src/routes/schemas.ts (+1 -0)
📝 packages/sso/src/routes/sso.ts (+20 -0)
📝 packages/sso/src/saml.test.ts (+149 -0)
📝 packages/sso/src/types.ts (+1 -0)

📄 Description

addresses https://github.com/better-auth/better-auth/issues/7549


Summary by cubic

Adds an authnRequestsSigned option to SAMLConfig to enable signed SAML AuthnRequests. Also adds this to service provider metadata, uses the configured private key to sign requests, and logs a warning if enabled without a key.

Written for commit 7544ab31d5. Summary will update 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/7562 **Author:** [@Paola3stefania](https://github.com/Paola3stefania) **Created:** 1/22/2026 **Status:** ✅ Merged **Merged:** 1/27/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `feat/sso-signed-authn-requests` --- ### 📝 Commits (10+) - [`2df9cdf`](https://github.com/better-auth/better-auth/commit/2df9cdf5678019812b5208dd41c9b7630bcae916) feat: authrequestsigned type - [`66497fc`](https://github.com/better-auth/better-auth/commit/66497fc6582bbfe45af8ef9f4614ecd387de99c5) feat: extden to shchema - [`afde2e8`](https://github.com/better-auth/better-auth/commit/afde2e899c0eaf1f32d7e0d72999b5fce61da974) add ars to metadata endpoint - [`937825e`](https://github.com/better-auth/better-auth/commit/937825e7c2ff57acf7fe339df4b4c7efb77fce0a) pass pk tos ervice provider and add ars to dpmetadata - [`9f6424f`](https://github.com/better-auth/better-auth/commit/9f6424fe8027a1ae91a792f226a926b04d291cb7) warn not cofig pk - [`a36eb1f`](https://github.com/better-auth/better-auth/commit/a36eb1f19e6c715b1a250a68ed061a0a08bb4dbc) add testing - [`8e20933`](https://github.com/better-auth/better-auth/commit/8e20933add9f34cc5a48d2a13d6b12a8ba5a7391) Merge branch 'canary' into feat/sso-signed-authn-requests - [`eaa5755`](https://github.com/better-auth/better-auth/commit/eaa5755b8159bad248ba6c1edf0afb890b597fd6) update doc - [`bf9ef84`](https://github.com/better-auth/better-auth/commit/bf9ef849504bed444cf191fcc49f9f36d009cd6c) Merge branch 'feat/sso-signed-authn-requests' of https://github.com/better-auth/better-auth into feat/sso-signed-authn-requests - [`e54f92a`](https://github.com/better-auth/better-auth/commit/e54f92a3c19a1149fb32435e0b251cf14d85181d) update docu ### 📊 Changes **6 files changed** (+192 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/sso.mdx` (+18 -2) 📝 `packages/sso/src/routes/providers.ts` (+3 -0) 📝 `packages/sso/src/routes/schemas.ts` (+1 -0) 📝 `packages/sso/src/routes/sso.ts` (+20 -0) 📝 `packages/sso/src/saml.test.ts` (+149 -0) 📝 `packages/sso/src/types.ts` (+1 -0) </details> ### 📄 Description addresses https://github.com/better-auth/better-auth/issues/7549 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds an authnRequestsSigned option to SAMLConfig to enable signed SAML AuthnRequests. Also adds this to service provider metadata, uses the configured private key to sign requests, and logs a warning if enabled without a key. <sup>Written for commit 7544ab31d510e2b17a25c35f53807e68c70b1e39. Summary will update 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-04-13 10:09:18 -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#15648