-
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
- 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
- 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
- Step 4: In your GitHub repo, make a copy of the
src/environments/environment-s3.tsand update the- redirectUri
- logoutUrl
- postLogoutRedirectUri with your with htpp://localhost:4200 or the S3 or github-pages url
- Step 6: In the
package.json, modify or rename thescripts build-prod-s3script to use the new environment file created above. Use this script to create your optimized build bundle for production deployments