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

supabase / auth / 30933337581 / 1
72%
master: 72%

Build:
DEFAULT BRANCH: master
Ran 04 Aug 2026 05:23PM UTC
Files 199
Run time 11s
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

04 Aug 2026 05:18PM UTC coverage: 72.214% (+0.04%) from 72.178%
30933337581.1

push

github

web-flow
chore(scim): mount the SCIM router in the main route tree (#2658)

## What kind of change does this PR introduce?

Moves the SCIM routes into the main route tree and hands the feature-flag check to the API layer, so the SCIM package stops carrying that concern.

Extracted from #2643.

## What is the current behavior?

`/scim/v2` is mounted at the top level of the router, outside the `r.Route("/")` block, so it does not run `isValidExternalHost` the way the rest of the API does.

The feature flag is enforced by `scim.Server.Middleware`, which means the SCIM package has to know about `Experimental.ScimEnabled` and depend on `apierrors`.

## What is the new behavior?

- The routes move into the `r.Route("/")` subtree, so they run `isValidExternalHost` alongside every other endpoint.
- `(*API).requireScimServerEnabled` replaces `scim.Server.Middleware`, following the existing `requireOAuthServerEnabled`, `requirePasskeyEnabled`, and `requireCustomOAuthEnabled`.

The three endpoints still return 501. With the flag off they still return the same 404, which the test now pins on the body rather than the status code alone:

```json
{
  "code": 404,
  "error_code": "feature_disabled",
  "msg": "SCIM server is disabled"
}
```

## Additional context

18364 of 25430 relevant lines covered (72.21%)

686.12 hits per line

Source Files on job 30933337581.1
  • Tree
  • List 199
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 30933337581
  • 928aa019 on github
  • Prev Job for on master (#30928593075.1)
  • Next Job for on master (#30945096113.1)
  • 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