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

pomerium / pomerium / 24360553867
52%

Build:
DEFAULT BRANCH: main
Ran 13 Apr 2026 06:56PM UTC
Jobs 1
Files 691
Run time 2min
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

13 Apr 2026 06:41PM UTC coverage: 45.435% (-0.01%) from 45.449%
24360553867

push

github

web-flow
fix: render HTML error pages for MCP authorize endpoint (#6252)

## Summary

The `/.pomerium/mcp/authorize` endpoint is browser-facing but returns
bare JSON error responses (e.g. `{"error":"invalid_grant"}`). Users see
raw JSON instead of Pomerium's standard HTML error page, and the error
description is not surfaced.

This switches all error responses in the authorize handler to use
Pomerium's built-in HTML error rendering with descriptive messages.

## Related issues

- ENG-3857

## User Explanation

When MCP OAuth authorization fails (e.g. invalid client, redirect URI
mismatch, bad request), users now see Pomerium's standard error page
with a human-readable description of what went wrong, instead of a raw
JSON blob.

## Checklist

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

0 of 23 new or added lines in 1 file covered. (0.0%)

19 existing lines in 7 files now uncovered.

35103 of 77259 relevant lines covered (45.44%)

114.5 hits per line

Uncovered Changes

Lines Coverage ∆ File
23
52.04
-2.86% internal/mcp/handler_authorization.go

Coverage Regressions

Lines Coverage ∆ File
5
48.28
-0.9% internal/databroker/server_clustered_follower.go
4
77.31
-1.06% pkg/storage/postgres/backend.go
2
92.78
-1.11% internal/fileutil/watcher.go
2
90.91
0.0% pkg/fanout/receive.go
2
85.67
-0.62% pkg/grpc/databroker/syncer.go
2
95.83
-2.08% pkg/identity/manager/schedulers.go
2
88.52
-0.44% pkg/storage/postgres/postgres.go
Jobs
ID Job ID Ran Files Coverage
1 24360553867.1 13 Apr 2026 06:56PM UTC 691
45.44
GitHub Action Run
Source Files on build 24360553867
  • Tree
  • List 691
  • Changed 13
  • Source Changed 1
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24360553867
  • 839e1ca4 on github
  • Prev Build on main (#24253554564)
  • Next Build on main (#24363719188)
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