This guide provides detailed instructions for creating and configuring an Auth0 application for OAuth authentication with Eva, including all necessary settings and security best practices.
Log in to the Auth0 Dashboard:
Navigate to the Auth0 management console.
Go to Applications:
Click on the Applications section from the sidebar.
Create a New Application or Edit an Existing One:
Select Application Type:
Choose Regular Web App as the application type.
Navigate to Settings:
Once the application is selected or created, click the Settings tab.
Set the Application Type:
Ensure that the application type is set to Regular Web Application.
Set the Application Login URI:
Enter your login URI. For example: https://eva.foxio.io/
(Replace with your actual domain if different.)
Configure Allowed Callback URLs:
Add the following callback URL:
https://eva.foxio.io/api/callback
(Replace eva.foxio.io
with your actual domain.)
Go to Advanced Settings:
Within the application settings, navigate to the Advanced Settings section.
Configure OAuth Settings:
Set Grant Types:
Navigate to the Grant Types section and ensure the following options are checked:
Note: Do NOT enable "Implicit" grant type as it's deprecated and insecure.
Configure Token Settings:
Navigate to Credentials:
Set Up Organizations:
Client Secret Management:
HTTPS Requirements:
Scopes Configuration:
openid profile email
Test the OAuth Flow:
Verify Token Contents:
Common Issues:
"Callback URL mismatch" error:
"Invalid grant type" error:
Missing user information:
openid profile email
scopes are being requestedToken expiration issues:
By following these steps, you will have set up an Auth0 application that is properly configured for OAuth authentication with Eva. The configuration uses modern, secure OAuth 2.0 flows with appropriate security measures.
Note: Replace https://eva.foxio.io/
with your own domain where applicable. For additional Auth0 documentation, visit Auth0 Docs.
After completing this setup guide, you're ready to configure Eva with your Auth0 credentials.