Skip to content

docs: document FGA support in authorizer-go and authorizer-js SDKs#64

Open
lakhansamani wants to merge 8 commits into
mainfrom
docs/fga-v2.3.0
Open

docs: document FGA support in authorizer-go and authorizer-js SDKs#64
lakhansamani wants to merge 8 commits into
mainfrom
docs/fga-v2.3.0

Conversation

@lakhansamani

Copy link
Copy Markdown
Contributor

Summary

Documents the client-facing Fine-Grained Authorization (FGA) capabilities added to the Go and JS SDKs (authorizer-go#16, authorizer-js#36), plus a small dashboard note on the authorization page.

Changes

docs/sdks/authorizer-js/functions.md

  • New getPermissions section (params, resource/scope response table, browser + Node samples) and a Table of Contents entry.
  • Added required_permissions rows + FGA samples to validateJWTToken and validateSession.
  • Updated getSession description and added an FGA sample.

docs/sdks/authorizer-go/index.md

  • New "Step 4: Fine-grained authorization (FGA)" section with RequiredPermissions and GetPermissions examples.
  • Updated Available Methods: added GetPermissions; annotated ValidateJWTToken / GetSession / ValidateSession with the FGA option.

docs/core/authorization.md

  • Tip noting the _authz_ admin mutations are also available from the dashboard UI.

Naming kept aligned with the API and SDKs throughout: getPermissions/GetPermissions, required_permissions/RequiredPermissions, { resource, scope }.

Verification

  • npm run build (Docusaurus) ✅ — compiles successfully. Pre-existing broken-link warnings on /core/sso-guide are unrelated to these changes.

Add fine-grained authorization (FGA) documentation to the SDK reference:

- authorizer-js functions.md: new getPermissions section, required_permissions
  param rows + samples for getSession, validateJWTToken, validateSession
- authorizer-go index.md: GetPermissions in available methods + FGA usage
  examples (RequiredPermissions and GetPermissions)
@netlify

netlify Bot commented Jun 6, 2026

Copy link
Copy Markdown

Deploy Preview for authorizerdev-docs ready!

Name Link
🔨 Latest commit fbc68fc
🔍 Latest deploy log https://app.netlify.com/projects/authorizerdev-docs/deploys/6a2a49d99958430008358440
😎 Deploy Preview https://deploy-preview-64--authorizerdev-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

- New core/authorization-recipes page: how FGA fits an application (the two
  touchpoints — write tuples on domain events, check on reads), Express and Go
  middleware, list filtering with fga_list_objects, and five complete recipes:
  document sharing, multi-tenant org→project→resource hierarchy (grant once,
  inherit everywhere, fine-grained exceptions), job-role approval workflow,
  time-bound contractor access, and block lists. Every DSL block is validated
  against the embedded OpenFGA engine.
- authorization.md: identify subjects by user:<id> (not names), app roles vs
  FGA relations are decoupled, cross-link the recipes page.
- Merge authorization-recipes into authorization.md (§8 Using FGA from your
  application, §9 Real-world recipes, §10 Cheat sheet) — one page instead of
  two near-identically named sidebar entries.
- Identify everything by id: user:<id> for subjects and numeric ids for
  objects (organization:101, project:201, resource:301…) across authorization,
  graphql-api, SDK pages and the migration guide. role:* objects stay keyed by
  role name by design.
- Model builder copy: starts from admin/editor/viewer; configured roles are
  one-click additions.
The public FGA surface is now exactly two operations (fga_check,
fga_batch_check and fga_list_objects are gone — never released):

- check_permissions: one or many checks per call; results positional and
  echoing each pair. list_permissions: objects the subject holds a
  permission on.
- Subject defaults to the caller's token; an explicit user is honored only
  for super-admins or when it equals the caller's own subject.
- Access Tester docs replaced by Users → View Permissions (the dashboard's
  per-user list_permissions modal).
- Updated: authorization (§4, middleware, recipes, cheat sheet), graphql-api,
  metrics labels, security, migration, and both SDK pages (CheckPermissions/
  ListPermissions, checkPermissions/listPermissions).
FGA/OpenFGA migration plan, agentic delegation design, enterprise authz
model, implementation agents, migration-tool design, and the ReBAC guide
now live here — the server repo no longer carries design docs.
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