Home

Awesome

👮‍♀️ AuthZ

Test & Build Go Reference Go Report Card License: MIT Taylor Swift

Installation

$ go get github.com/zeiss/fiber-authz

Usage

Any authorization model can be implemented by implementing the Authorizer interface.

OpenAPI

Using OpenAPI Extensions individual operations can be protected with OpenFGA.

x-fiber-authz-fga:
  user:
    namespace: user
    auth_type: oidc
  relation:
    name: admin
  object:
    namespace: system
    components:
      - in: params
        name: teamId

There are three parts to the OpenAPI extension:

Then there are components to construct the relation or object.

Examples

See examples to understand the provided interfaces.

License

MIT