Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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