Skip to content

Releases: alternayte/auth-all

v0.4.1

Choose a tag to compare

@github-actions github-actions released this 11 Sep 07:40

Make the TypeScript client usable for an application that holds session state,
and let an application generate the client of its own contract. The Go API of
the library does not change.

  • createSessionStore holds the session of the current person, and it reads it
    again after every call that can change it
  • the entry point @alternayte/auth-all-client/react holds the hook useSession.
    React is an optional peer dependency
  • the client reads a header and a bearer token before each request, so a server
    that serves many people and a mobile application both use one client
  • the hooks onRequest, onResponse, and onError reach every call
  • auth-all client --openapi generates the client of a host contract, so
    the types name the host columns of WithUserFields and WithOrganizationFields

apidiff reports no incompatible change against v0.3.0.

Changelog

Other

Install

Go library:

go get github.com/alternayte/auth-all@v0.4.1

TypeScript client:

npm install @alternayte/auth-all-client@0.4.1

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 11 Sep 06:10

Add organizations, fine-grained permissions, and the external policy boundary.
Every new capability is off until the application enables it, so a v0.3.0
application compiles and runs with no code change.

  • plugins/organizations: organizations, memberships, and the active organization
  • plugins/organizations/permission: the statement resource:action and the wildcard
  • custom roles that an organization declares at run time, with an escalation guard
  • invitations with a hashed single-use token and an atomic acceptance
  • teams inside an organization, and the union of the organization role and every team role
  • organization-scoped API keys that never exceed the live permissions of the owner
  • administrative routes for the organizations of the whole application
  • ObjectChecker, the optional seam for a per-object question
  • the Go methods SignIn, SignOut, SignOutToken, and ChangePassword
  • WithStrictOriginCheck, which refuses a cookie request that names no origin

The credential read loads the session, the user, the organization, the
membership, and the resolved statements in one round trip, so a permission
check costs no store access. One check of a set of 100 statements costs 44
nanoseconds and allocates nothing.

Apply the migration units 20261101000001 to 20261101000006 for the
organizations plugin, and 20261101000007 for the API key column. The two new
columns are nullable, so the units apply to a database that holds rows.

apidiff reports no incompatible change against v0.3.0.

Changelog

Other

Install

Go library:

go get github.com/alternayte/auth-all@v0.4.0

TypeScript client:

npm install @alternayte/auth-all-client@0.4.0

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 10 Sep 17:07

Changelog

Other

Install

Go library:

go get github.com/alternayte/auth-all@v0.3.0

TypeScript client:

npm install @alternayte/auth-all-client@0.3.0

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 02 Sep 09:42

Changelog

Other

Install

Go library:

go get github.com/alternayte/auth-all@v0.2.0

TypeScript client:

npm install @alternayte/auth-all-client@0.2.0

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 24 Aug 21:24

Changelog

Other

Install

Go library:

go get github.com/alternayte/auth-all@v0.1.0

TypeScript client:

npm install @alternayte/auth-all-client@0.1.0