Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jimareed/casbin-auth0-rbac-backend
Example RBAC implementation with Casbin and Auth0
https://github.com/jimareed/casbin-auth0-rbac-backend
Last synced: 22 days ago
JSON representation
Example RBAC implementation with Casbin and Auth0
- Host: GitHub
- URL: https://github.com/jimareed/casbin-auth0-rbac-backend
- Owner: jimareed
- License: mit
- Created: 2020-12-12T12:40:47.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-22T14:28:08.000Z (almost 4 years ago)
- Last Synced: 2024-08-05T17:26:45.677Z (4 months ago)
- Language: Go
- Size: 25.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - jimareed/casbin-auth0-rbac-backend - Example RBAC implementation with Casbin and Auth0 (Go)
README
# casbin-auth0-rbac-backend
Example RBAC implementation with Casbin and Auth0## Setup
### Build & Run
Grab the dependencies
```
go get
```Set environment variables
```
export DATA_API_ID=--your Auth0 API Identifier--
export DATA_DOMAIN=--your Auth0 domain--
```Build and run
```
go run .
```### Sources
- https://auth0.com/blog/authentication-in-golang/
- https://auth0.com/docs/quickstart/backend/golang/01-authorization
- https://auth0.com/docs/users/user-search/retrieve-users-with-get-users-by-id-endpoint