• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / auth / 42210782111
72%

Build:
DEFAULT BRANCH: master
Ran 06 Nov 2026 11:35AM UTC
Jobs 1
Files 208
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Nov 2026 11:30AM UTC coverage: 71.681% (-0.05%) from 71.732%
42210782111

push

github

web-flow
feat(saml): add dedicated_scope option for SAML providers (#2893)

Some SAML identity providers (famously Entra) don't allow the same
entity ID to be registered with multiple "applications," making Supabase
Auth usable only with one application. Some enterprise use-cases are
therefore hard to build.

In this PR we add a `dedicated_scope` optional boolean on an SSO
provider, which in SAML means that the provider can only be used via its
own new Entity ID and URLs scoped to the provider's unique ID.

| Dedicated scope | Entity ID, Metadata URL | ACS URL |
| -- | -- | -- |
| False or Null | /sso/saml/metadata | /sso//saml/acs |
| True | /sso/{uuid}/saml/metadata | /sso/{uuid}/saml/acs |

This way in Entra you can register many SPs served by the same Supabase
Auth project by creating them with the `dedicated_scope` boolean.

Notes:

- Adds a `dedicated_scope` boolean to SAML SSO providers. When set, that
provider's ACS URL and SP metadata URL (and, by extension, the entity ID
GoTrue presents to the IdP, which defaults to the metadata URL) are
scoped to the provider's own ID, instead of using the URLs shared by
every SAML provider in the project. The same signing key/certificate is
still used.
- Useful for IdPs that require a unique ACS URL/entity ID per
connection, and isolates assertions issued for one connection from being
replayed against another.
- New dedicated routes `GET /sso/{sso_provider_id}/saml/metadata` and
`POST /sso/{sso_provider_id}/saml/acs` alongside the existing shared
`/sso/saml/*` endpoints; the ACS handler rejects a provider hitting the
wrong endpoint for its scope setting.
- `dedicated_scope` can be set on create/update via the admin SSO
provider API and is documented in `openapi.yaml`.

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: Cemal Kilic <cemalkilic96@gmail.com>
Co-authored-by: Cemal Kılıç <cemalkilic@users.noreply.github.com>

29 of 65 new or added lines in 6 files covered. (44.62%)

1 existing line in 1 file now uncovered.

16822 of 23468 relevant lines covered (71.68%)

516.68 hits per line

Uncovered Changes

Lines Coverage ∆ File
18
3.23
-0.2% internal/api/samlacs.go
16
78.7
-12.96% internal/api/saml.go
2
69.03
-0.7% internal/api/sso.go

Coverage Regressions

Lines Coverage ∆ File
1
3.23
-0.2% internal/api/samlacs.go
Jobs
ID Job ID Ran Files Coverage
1 42210782111.1 06 Nov 2026 11:35AM UTC 208
71.68
GitHub Action Run
Source Files on build 42210782111
  • Tree
  • List 208
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • bfbe078c on github
  • Prev Build on master (#42208824384)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc