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

    • 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, modify the files under src/environments

    • environment.ts
      • client id from Auth0
    • environment-s3.ts
    • environment-github-pages.ts
  • Commit and merge your code to the master or main branch . This should result in a deployment to either S3 or GitHub Pages

  • Step 5: To test

    • local : run npm run start

Clone this wiki locally