diff --git a/CHANGELOG.md b/CHANGELOG.md index 7dd8eaa..2597c99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## v1.1.2 — 2026-08-08 + +Patch — documentation fix plus coordinated framework version alignment. + +### Fixed + +- README wiring example: `rbac.NewClaimsPermissionProvider("perms", authmw.GetClaims)` (was + missing the `getClaims` argument); install line updated to v1.1.2. + +### Changed + +- Bumped `contracts`, `core`, `web` to v1.1.2. + ## v1.1.1 — 2026-08-07 Patch — coordinated framework version alignment. Bumped `contracts`, `core`, `web` to v1.1.1. diff --git a/README.md b/README.md index 84abf7b..b1076ba 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # einherjar/auth -[![version](https://img.shields.io/badge/version-v1.1.1-5C4EE5?style=flat-square)](https://code.nochebuena.dev/einherjar/auth) +[![version](https://img.shields.io/badge/version-v1.1.2-5C4EE5?style=flat-square)](https://code.nochebuena.dev/einherjar/auth) [![license](https://img.shields.io/badge/license-AGPL--3.0-22863A?style=flat-square)](LICENSE) [![go](https://img.shields.io/badge/Go-1.26+-00ADD8?style=flat-square&logo=go&logoColor=white)](https://go.dev) @@ -40,7 +40,7 @@ enricher := userservice.NewIdentityEnricher(userRepo) // Build permission resolution chain. permissions := rbac.NewChainPermissionProvider( - rbac.NewClaimsPermissionProvider("perms"), // JWT fast-path + rbac.NewClaimsPermissionProvider("perms", authmw.GetClaims), // JWT fast-path rbac.NewCachedPermissionProvider(dbProvider, valkeyCache, 5*time.Minute), // DB fallback ) @@ -128,5 +128,5 @@ None. Auth middleware is wired in code, not configured via environment. ## Install ```bash -go get code.nochebuena.dev/einherjar/auth@v1.0.0 +go get code.nochebuena.dev/einherjar/auth@v1.1.2 ``` diff --git a/go.mod b/go.mod index 033f2bd..4adbe64 100644 --- a/go.mod +++ b/go.mod @@ -3,9 +3,9 @@ module code.nochebuena.dev/einherjar/auth go 1.26 require ( - code.nochebuena.dev/einherjar/contracts v1.1.1 - code.nochebuena.dev/einherjar/core v1.1.1 - code.nochebuena.dev/einherjar/web v1.1.1 + code.nochebuena.dev/einherjar/contracts v1.1.2 + code.nochebuena.dev/einherjar/core v1.1.2 + code.nochebuena.dev/einherjar/web v1.1.2 ) require ( diff --git a/go.sum b/go.sum index 0ab8558..7f215be 100644 --- a/go.sum +++ b/go.sum @@ -1,9 +1,9 @@ -code.nochebuena.dev/einherjar/contracts v1.1.1 h1:MRQUR8Q1D4wIOUIz11vpAdsapWqFTMwr0/VRvWbGO3s= -code.nochebuena.dev/einherjar/contracts v1.1.1/go.mod h1:ccltUtrFb5+MEJdkx2VVEUL+xC5pupVlVVsMM8AlCWI= -code.nochebuena.dev/einherjar/core v1.1.1 h1:W6V/Peh1ffWjqZnBuBQLn4UGM+bgvWt9MQuktTEfDFw= -code.nochebuena.dev/einherjar/core v1.1.1/go.mod h1:ninuZlnO178zC4rOdt5vjGojnlOpygP8cDorrecAeTY= -code.nochebuena.dev/einherjar/web v1.1.1 h1:ezoyXouo/ClPMPNagMmMMWIEONlyff0VioFEGYz1bX8= -code.nochebuena.dev/einherjar/web v1.1.1/go.mod h1:LGIaGgwZIf6e66rttM27FxP+RMfl0R+ZMUg/56wi70A= +code.nochebuena.dev/einherjar/contracts v1.1.2 h1:LNAFCKQjpNjkCyMid2AgkhDPPzOx8dvpRqqZ7F3zpo0= +code.nochebuena.dev/einherjar/contracts v1.1.2/go.mod h1:ccltUtrFb5+MEJdkx2VVEUL+xC5pupVlVVsMM8AlCWI= +code.nochebuena.dev/einherjar/core v1.1.2 h1:iYU2fIWtnyOYFbTMD92NaLJMye4XgZHXWhEjB3iS7lo= +code.nochebuena.dev/einherjar/core v1.1.2/go.mod h1:Y7qZ9nri9Ydey3+40yz75KErOvOUjRSoffdykXbncsw= +code.nochebuena.dev/einherjar/web v1.1.2 h1:hE0sRdO1kN1iLhAcV40bZnL/+X+MxdhmwoNoOVSysbQ= +code.nochebuena.dev/einherjar/web v1.1.2/go.mod h1:uk2wW+5ds/Om/GQjshVefvg/N8M2LcYR003PMxGoSnw= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/gabriel-vasile/mimetype v1.4.12 h1:e9hWvmLYvtp846tLHam2o++qitpguFiYCKbn0w9jyqw=