Skip to content

feat: expose signed principal and group grants - #10

Merged
reoring merged 1 commit into
mainfrom
work/20261119/principal-group-grants
Nov 18, 2026
Merged

reoring merged 1 commit into
mainfrom
work/20261119/principal-group-grants

Conversation

@reoring

@reoring reoring commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

SessionClaims and Identity.Access now carry Principal (u_…, the person key an app stores) and GroupGrants from the signed Assertion. Returned nested slices are caller-owned.

  • Missing principal fails closed with ErrMissingSignedPrincipal (wraps ErrInvalidAssertion); the message says Platform API must include appthrust/platform#7087. Minimum Platform API rises accordingly (COMPATIBILITY.md).
  • Existing Subject fields and permission APIs are unchanged; Memo (v0.6.0) keeps compiling. Next tag: v0.8.0 (not created by this PR).

Design: Nexus features/auth/design.md §5, specs/03. TS counterpart: appthrust/platform PR on dashboard/packages/app-access.

Checks (run by the author): gofmt, go vet, go test ./accesskey ./appserver/identity pass.

…identity

- SessionClaims and Identity.Access carry Principal (u_…) and GroupGrants from the signed Assertion; nested slices are caller-owned.
- Missing principal fails closed with ErrMissingSignedPrincipal (wraps ErrInvalidAssertion); Platform API must include appthrust/platform#7087.
- Existing Subject fields and permission APIs are unchanged; next tag v0.8.0.
@reoring
reoring merged commit 7886652 into main Nov 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant