authz-client.go

module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2026 License: MIT

README

authz-client.go

CI License Issues PRs Dependabot

Shared identity resolution and authorization client for SweetRPG's Go APIs: verifies bearer tokens against auth-api (POST /authz/check), resolves the subject to the canonical users._id via users-api (GET /profile), and exposes Gin middleware (ResolveViewer, RequireAnyRole) that stashes the identity in the request context alongside Viewer(c), Roles(c), Subject(c), and Token(c) accessors.

Install

go get github.com/sweetrpg/authz-client.go

Documentation

Package documentation: pkg.go.dev/github.com/sweetrpg/authz-client.go. Test coverage reports are published to sweetrpg.github.io/authz-client.go on every merge to develop.

Contributing

See CONTRIBUTING.md for the development workflow and RELEASE.md for how versions get cut.

Directories

Path Synopsis
Package authz is the shared identity-resolution and authorization client for SweetRPG's Go APIs.
Package authz is the shared identity-resolution and authorization client for SweetRPG's Go APIs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL