Skip to content

Commit

Permalink
Merge pull request #883 from MikaelVallenet/auth0-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelVallenet committed Jul 12, 2023
2 parents f13e1ab + f8246c7 commit 2b7840c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/AUTH0_CONFIGURATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Pathwar Auth0 Configuration :lock:

Pathwar uses Auth0 to manage authentication to its platform.
Through the OpenID Connect protocol, Auth0 communicates to Pathwar a token that identifies and authenticates the user.

#### Here are the steps to follow to create your Auth0 Tenant

- Go to: https://auth0.com/
- Identify yourself or log in
- From the dashboard, create a "Single Page Application".
- In the application settings, define "Allowed Callbacks URLs", "Allowed Logout URLs" and "Allowed Web Origins" with the front-end address
- Accept "Allow Cross-Origin Authentication".
- Put the front-end URL in "Allow Origins (CORS)".
- Set the token lifetime as desired
- Then create an API on Auth0, allowing the back-end to interact with our Application
- Activate RBAC authorization policies for the API and the addition of Permissions in the access token
- Also activate "Allow Skipping User Content" and "Allow Offline Access".
- Now create "agent" and "admin" permissions for this API
- This way you can give these permissions to the users you want, "admin" allows you to control everything and "agent" is given to the token used by the pathwar agent to authenticate itself.
- Once you have done this you should fill the environments files in `~/web` and default data into ``go/pkg/pwsso/testing.go``

0 comments on commit 2b7840c

Please sign in to comment.