auth-platform
togo organizations & teams — multi-tenant auth with per-org roles, invites & branding
Extends auth
togo install togo-framework/auth-platform- go
- golang
- multi-tenancy
- organizations
- plugin
- rbac
- saas
- teams
Readme
togo-framework/auth-platform
Organizations & teams for togo — multi-tenant auth with per-org roles, invites & branding.
Install
auth-platform adds the organization / team layer on top of the togo auth plugin — what Fort calls platforms and Laravel Jetstream calls teams. Users join orgs as members with a per-org role, are added by email invite, and every request is scoped to a current org (resolved from a header, subdomain, or claim). Each org carries its own settings and branding. It composes with auth but works standalone.
Usage
Request scoping
Roles
owner > admin > member (ranked — RequireOrgRole(admin) is satisfied by owners). Custom role strings are allowed and matched by exact name.
REST API
| Method | Path | Purpose |
|---|---|---|
GET | /api/orgs | orgs the current user belongs to (switcher) |
POST | /api/orgs | create an org (creator = owner) |
GET/PATCH/DELETE | /api/orgs/{id} | read / update branding+settings / delete |
GET | /api/orgs/{id}/members | list members |
POST | /api/orgs/{id}/invites | invite by email + role |
POST | /api/org-invites/accept | accept an invite token |
The current user is read from the auth context (or X-User-Id for standalone use).
Configuration
No required env. Data is held in a bounded in-memory store behind a small interface — back it with a database for persistence in production.
Premium sponsors
Support togo — become a sponsor.