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

ilpanich / axiam-go-sdk / 29513269584
95%

Build:
DEFAULT BRANCH: main
Ran 16 Jul 2026 03:54PM UTC
Jobs 1
Files 25
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

16 Jul 2026 03:54PM UTC coverage: 94.838% (+0.3%) from 94.506%
29513269584

push

github

web-flow
feat(middleware): add RequireAuth/RequireAccess/RequireRole route wrappers (CONTRACT §11) (#8)

* docs(contract): sync CONTRACT.md §11 declarative authorization helpers

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C5foj8NVCeS9qUW94kJ13g

* feat(middleware): add RequireAuth/RequireAccess/RequireRole route wrappers (CONTRACT §11)

Adds the Go equivalent of the CONTRACT.md §11 declarative authorization
helpers: since Go has no macro/annotation/decorator facility, these are
per-route http.Handler wrappers under the same canonical vocabulary as
every other AXIAM SDK.

- middleware.RequireAuth() requires an already-injected identity (401).
- middleware.RequireAccess(checker, action, resolve, opts...) requires the
  request's authenticated caller to pass an authorization check for a
  resource resolved via middleware.ResourceFromPath/StaticResource or a
  custom middleware.ResourceResolver; fails closed (503) on any transport
  error, 400 on an unresolvable resource, 403 on deny, and never caches
  decisions.
- middleware.RequireRole(roles...) is a local, no-round-trip claim check.
- Client.CheckAccessAs is an additive method (existing CheckAccess is
  unchanged) so RequireAccess can check the request's own authenticated
  user_id rather than the application's own client session.

Extends examples/middleware-guard with a RequireAccess-protected
GET /docs/{id} route, and updates the README/CHANGELOG accordingly.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C5foj8NVCeS9qUW94kJ13g

* docs: use en-dash in CONTRACT §1–§11 conformance statement

Match the exact wording in CONTRACT.md's Closing Notes (en-dash U+2013).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C5foj8NVCeS9qUW94kJ13g

---------

Co-authored-by: Claude <noreply@anthropic.com>

116 of 116 new or added lines in 2 files covered. (100.0%)

1819 of 1918 relevant lines covered (94.84%)

529.29 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29513269584.1 16 Jul 2026 03:54PM UTC 25
94.84
GitHub Action Run
Source Files on build 29513269584
  • Tree
  • List 25
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29513269584
  • 1939e658 on github
  • Prev Build on main (#29417381684)
  • Next Build on main (#29527005469)
  • 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