This guide will walk you through the process of setting up Microsoft OAuth 2.0 authentication for Eva integration using Azure Active Directory.
https://eva.foxio.io
)Go to the Azure App Registration portal:
https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps
Click New Registration.
Fill in the registration details:
https://eva.foxio.io/api/callback
Click Register.
After registration, note these important values from the Overview page:
In your app's settings, navigate to API Permissions (found in the left menu under "Manage").
Click Add a permission > Microsoft Graph.
Select Delegated permissions and add the following:
openid
- Sign users in and read their profileemail
- View users' email addressprofile
- View users' basic profileAfter adding permissions, click Grant admin consent for [Your Organization] if you have admin privileges.
Navigate to Certificates & secrets in the left menu.
Under Client secrets, click New client secret.
Configure the secret:
Click Add.
IMPORTANT: Copy the client secret value immediately. You won't be able to retrieve it later.
Go to Authentication in the left menu.
Under Platform configurations, verify your Web platform settings:
Under Advanced settings:
The Microsoft OAuth 2.0 endpoint URLs for your app will be:
Authorization endpoint:
https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/authorize
Token endpoint:
https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token
Replace {tenant-id}
with your Directory (Tenant) ID.
Client Secret Management:
Least Privilege Principle:
Conditional Access:
Test the OAuth Flow:
Verify Token Contents:
Common Issues:
"AADSTS50011: Reply URL mismatch" error:
"AADSTS65001: Consent required" error:
"AADSTS700016: Application not found" error:
Missing user information in tokens:
openid email profile
)Client secret issues:
Use these values to configure Eva app in Slack:
For more information, refer to Microsoft identity platform documentation.
After completing this setup guide, you're ready to configure Eva with your Microsoft credentials.