{"id":19110044,"url":"https://github.com/zeiss/fiber-authz","last_synced_at":"2025-05-16T07:08:53.751Z","repository":{"id":220200889,"uuid":"751015022","full_name":"ZEISS/fiber-authz","owner":"ZEISS","description":"👮‍♂️ A middleware to secure routes in fiber ⚡️","archived":false,"fork":false,"pushed_at":"2025-05-09T04:31:21.000Z","size":1146,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T22:38:52.092Z","etag":null,"topics":["authz","fiber","middleware","openfga"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZEISS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-31T19:09:39.000Z","updated_at":"2025-05-09T04:31:22.000Z","dependencies_parsed_at":"2024-03-19T05:44:11.650Z","dependency_job_id":"fe1fc730-baa0-4338-8a1e-550a39bfaeae","html_url":"https://github.com/ZEISS/fiber-authz","commit_stats":null,"previous_names":["zeiss/fiber-authz"],"tags_count":34,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZEISS%2Ffiber-authz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZEISS%2Ffiber-authz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZEISS%2Ffiber-authz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZEISS%2Ffiber-authz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZEISS","download_url":"https://codeload.github.com/ZEISS/fiber-authz/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254485062,"owners_count":22078767,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authz","fiber","middleware","openfga"],"created_at":"2024-11-09T04:23:24.461Z","updated_at":"2025-05-16T07:08:53.729Z","avatar_url":"https://github.com/ZEISS.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 👮‍♀️ AuthZ\n\n[![Test \u0026 Build](https://github.com/zeiss/fiber-authz/actions/workflows/main.yml/badge.svg)](https://github.com/zeiss/fiber-authz/actions/workflows/main.yml)\n[![Go Reference](https://pkg.go.dev/badge/github.com/zeiss/fiber-authz.svg)](https://pkg.go.dev/github.com/zeiss/fiber-authz)\n[![Go Report Card](https://goreportcard.com/badge/github.com/zeiss/fiber-authz)](https://goreportcard.com/report/github.com/zeiss/fiber-authz)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Taylor Swift](https://img.shields.io/badge/secured%20by-taylor%20swift-brightgreen.svg)](https://twitter.com/SwiftOnSecurity)\n\n## Installation\n\n```bash\n$ go get github.com/zeiss/fiber-authz\n```\n\n## Usage\n\n- [x] [OpenFGA](https://openfga.dev/)\n- [x] Team-based access control\n- [x] Role-based access control\n- [x] Noop (for testing)\n\nAny authorization model can be implemented by implementing the `Authorizer` interface.\n\n## OpenAPI\n\nUsing [OpenAPI Extensions](https://swagger.io/docs/specification/openapi-extensions/) individual operations can be protected with [OpenFGA](https://openfga.dev/).\n\n```yaml\nx-fiber-authz-fga:\n  user:\n    namespace: user\n    auth_type: oidc\n  relation:\n    name: admin\n  object:\n    namespace: system\n    components:\n      - in: params\n        name: teamId\n```\n\nThere are three parts to the OpenAPI extension:\n\n- `user` - The user namespace and authentication type.\n- `relation` - The relation name.\n- `object` - The object namespace and components.\n\nThen there are components to construct the relation or object.\n\n- `in` - The location of the component (e.g. `path`).\n- `name` - The name of the component (e.g. `teamId`).\n- `type` - The type of the component (e.g. `string`).\n\n## Examples\n\nSee [examples](https://github.com/zeiss/fiber-authz/tree/master/examples) to understand the provided interfaces.\n\n## License\n\n[MIT](/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeiss%2Ffiber-authz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeiss%2Ffiber-authz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeiss%2Ffiber-authz/lists"}