Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Auth0 Recipe: Improved Steps, Service Account Tokens, and Testing #727

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

eisau
Copy link

@eisau eisau commented Oct 23, 2024

Description 📝

This PR includes several updates to the authentication recipe for Auth0 in the docs/recipes/authentication/1-auth0.mdx file. The changes focus on improving clarity and adding new steps for creating applications and handling service account access tokens.

Updates to Auth0 Setup Steps:

  • Step 1: Create a new Auth0 application

    • Updated instructions to guide users through creating a new Auth0 application and API. ([docs/recipes/authentication/1-auth0.mdxL40-R53](https://github.com/hasura/ddn-docs/pull/727/files#diff-f06f81dffd7f93585791770cf521e84cbaa08e3313485f0f5b6b93d538450c91L40-R53))
  • Step 2: Create a new Auth0 Action

    • Revised the process for creating a new Auth0 Action, including updated code for the onExecutePostLogin function. ([docs/recipes/authentication/1-auth0.mdxL58-R70](https://github.com/hasura/ddn-docs/pull/727/files#diff-f06f81dffd7f93585791770cf521e84cbaa08e3313485f0f5b6b93d538450c91L58-R70))

Additional Configuration and Testing:

  • Step 3: Update AuthConfig

    • Added instructions for updating the AuthConfig object to include the audience. ([[1]](https://github.com/hasura/ddn-docs/pull/727/files#diff-f06f81dffd7f93585791770cf521e84cbaa08e3313485f0f5b6b93d538450c91L78-R90), [[2]](https://github.com/hasura/ddn-docs/pull/727/files#diff-f06f81dffd7f93585791770cf521e84cbaa08e3313485f0f5b6b93d538450c91L95-R108))
  • Step 4: Service account access token

    • Added a new section detailing how to create a service account access token for backend operations, including sample code for generating the token. ([docs/recipes/authentication/1-auth0.mdxL107-R187](https://github.com/hasura/ddn-docs/pull/727/files#diff-f06f81dffd7f93585791770cf521e84cbaa08e3313485f0f5b6b93d538450c91L107-R187))
  • Step 5: Test your configuration

    • Updated the testing section to include steps for using the Auth0 Authentication API Debugger to test the configuration. ([docs/recipes/authentication/1-auth0.mdxL107-R187](https://github.com/hasura/ddn-docs/pull/727/files#diff-f06f81dffd7f93585791770cf521e84cbaa08e3313485f0f5b6b93d538450c91L107-R187))

Quick Links 🚀

Assertion Tests 🤖

The user should be able to easily integrate Auth0 with Hasura DDN.

@eisau eisau changed the title docs: update Auth0 recipe Updated Auth0 Recipe: Improved Steps, Service Account Tokens, and Testing Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant