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

pomerium / pomerium / 20802416424
46%

Build:
DEFAULT BRANCH: main
Ran 08 Jan 2026 01:39AM UTC
Jobs 1
Files 600
Run time 3min
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

08 Jan 2026 01:33AM UTC coverage: 52.971% (+0.02%) from 52.955%
20802416424

push

github

web-flow
mcp: set www-authenticate header in unauthorized response (#6035)

## Summary


https://modelcontextprotocol.io/specification/2025-11-25/basic/authorization#authorization-server-location

> WWW-Authenticate Header: Include the resource metadata URL in the
WWW-Authenticate HTTP header under resource_metadata when returning 401
Unauthorized responses, as described in RFC 9728 Section 5.1.
> MCP servers SHOULD include a scope parameter in the WWW-Authenticate
header as defined in RFC 6750 Section 3 to indicate the scopes required
for accessing the resource.

We will be returning `www-authenticate` header with `resource_metadata`,
however we would not return any scopes requires anymore, as they now
have expanded lifecycle in the 11/25 MCP spec update.
We will also not return `realm` as it is not required. 

## Related issues

Fix
https://linear.app/pomerium/issue/ENG-3434/mcp-www-authenticate-with-resource-metadata

## User Explanation

<!-- How would you explain this change to the user? If this
change doesn't create any user-facing changes, you can leave
this blank. If filled out, add the `docs` label -->

## Checklist

- [ ] reference any related issues
- [ ] updated unit tests
- [ ] add appropriate label (`enhancement`, `bug`, `breaking`,
`dependencies`, `ci`)
- [ ] ready for review

7 of 8 new or added lines in 2 files covered. (87.5%)

1 existing line in 1 file now uncovered.

29611 of 55900 relevant lines covered (52.97%)

127.45 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
85.63
0.17% authorize/check_response.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
75.41
0.0% pkg/storage/postgres/registry.go
Jobs
ID Job ID Ran Files Coverage
1 20802416424.1 08 Jan 2026 01:39AM UTC 600
52.97
GitHub Action Run
Source Files on build 20802416424
  • Tree
  • List 600
  • Changed 7
  • Source Changed 2
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20802416424
  • 52df2ebd on github
  • Prev Build on main (#20792467238)
  • Next Build on main (#20818861175)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc