Discover Packages
github.com/jimareed/auth0-rbac-backend
command
module
Version:
v0.0.0-...-e608f7d
Opens a new window with list of versions in this module.
Published: Nov 28, 2020
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
auth0-rbac-backend
Basic RBAC implimentation using React, Go and Auth0. Also requires https://github.com/jimareed/auth0-rbac . Based on https://github.com/jimareed/react-auth0-login , the samples from Auth0 and the Auth0 blog: https://auth0.com/blog/authentication-in-golang/ .
Setup:
follow the setup instructions in: https://github.com/jimareed/auth0-rbac
Update your main.go
file with the required values from the Auth0 dashboard. There are 3 different spots that need to be updated:
// main.go
// ...
aud := "YOUR_API_IDENTIFIER"
// ...
iss := "https://YOUR_DOMAIN/"
// ...
resp, err := http.Get("https://YOUR_DOMAIN/.well-known/jwks.json")
// ...
Your Identifier is listed on the Settings tab of the API you just created in the dashboard. To find YOUR_DOMAIN
, click on the Quick Start tab and scroll down to the code snippet. Copy the value for options.Authority
and use that to replace YOUR_DOMAIN
. Make sure you keep the trailing slash for iss
in main.go
.
Run Go
In a separate terminal tab, grab the dependencies
go get
Build and run your Go application:
go run .
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.