Skip to content

Configure Auth0

Dennis Chacko edited this page May 16, 2021 · 8 revisions

Configure Auth0

  • 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
  • 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.ts and 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 the scripts build-prod-s3 script to use the new environment file created above. Use this script to create your optimized build bundle for production deployments

Clone this wiki locally