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

supabase / auth / 30928593075
72%

Build:
DEFAULT BRANCH: master
Ran 04 Aug 2026 04:25PM UTC
Jobs 1
Files 198
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

04 Aug 2026 04:19PM UTC coverage: 72.178% (+0.008%) from 72.17%
30928593075

push

github

web-flow
chore(scim): deliver SCIM responses through a protocol helper (#2657)

Extract `SendJSONAs` from `SendJSON` so callers can specify a `Content-Type`, and add a protocol package that wraps it with the SCIM media type.

Extracted from https://github.com/supabase/auth/pull/2643

## What kind of change does this PR introduce?

Refactor. Extracts a `scim/protocol` package that writes responses using the SCIM media type, so the discovery endpoints in the follow-up PRs have one place to send from.

## What is the current behavior?

`shared.SendJSON` hardcodes `application/json`, so it is not usable for SCIM.
`scim.Server.notImplemented` writes its response by hand instead, setting `Content-Type` from a local `mediaType` const and calling `WriteHeader(501)` directly.

## What is the new behavior?

* `shared.SendJSONAs(w, status, contentType, obj)` takes the Content-Type; `SendJSON` delegates to it with `application/json`.
* A new `internal/api/scim/protocol` package holds `MediaType` (`application/scim+json`) and `Send`.
* `notImplemented` goes through `protocol.Send`, and the local `mediaType` const is gone.

## Additional context

15 of 17 new or added lines in 3 files covered. (88.24%)

18339 of 25408 relevant lines covered (72.18%)

685.98 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
86.67
8.89% internal/api/shared/http.go
Jobs
ID Job ID Ran Files Coverage
1 30928593075.1 04 Aug 2026 04:25PM UTC 198
72.18
GitHub Action Run
Source Files on build 30928593075
  • Tree
  • List 198
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 79ac245e on github
  • Prev Build on master (#30919281985)
  • Next Build on master (#30933337581)
  • 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