-
Notifications
You must be signed in to change notification settings - Fork 0
Configure Auth0
Dennis Chacko edited this page May 16, 2021
·
8 revisions
-
Step 1: Please see this document on how to register the Angular application with Auth0
-
Step 2: To test locally, add the below urls to application settings in Auth0
- Allowed Callback URLs in Auth0 with :
http://localhost:4200/home - Allowed Logout URLs in Auth0 with:
http://localhost:4200/landing
- Allowed Callback URLs in Auth0 with :
-
Step 3: If deployed to AWS S3, add the below urls to application settings in Auth0
- Allowed Callback URLs in Auth0 with :
http://{bucket-name}.s3-website-{aws-region}.amazonaws.com/home - Allowed Logout URLs in Auth0 with:
http://{bucket-name}.s3-website-{aws-region}.amazonaws.com/landing
- Allowed Callback URLs in Auth0 with :
-
Step 3: If deployed to GitHub Pages, add the below urls to application settings in Auth0
- Allowed Callback URLs in Auth0 with :
http://{github-pages-url}/home - Allowed Logout URLs in Auth0 with:
http://{github-pages-url}/landing
- Allowed Callback URLs in Auth0 with :
-
Step 4: In your GitHub repo, modify the files under
src/environments- environment.ts
- client id from Auth0
- environment-s3.ts
- client id from Auth0
- replace http://localhost:4200 with the S3 url
- environment-github-pages.ts
- client id from Auth0
- replace http://localhost:4200 with the GitHub Pages url
- environment.ts
-
Commit and merge your code to the
masterormainbranch . This should result in a deployment to either S3 or GitHub Pages -
Step 5: To test
- local : run
npm run start
- local : run