Step-by-Step Guide
Configure Microsoft Entra ID for OIDC Login
For: Speech Analytics App
Callback URL:
https://analytics.voicegain.ai/auth-svc/openid-relay/callback PART 1 — Configure Microsoft Entra (Azure AD)
Step 1 — Create the App Registration
Go to Microsoft Entra Admin Center (https://entra.microsoft.com/#home)
Navigate to App Registrations (left-hand menu)
Click on All Applications tab
Click + New registration
Fill in:
Field | Value |
|---|---|
Name | e.g. Voicegain Speech Analytics App |
Supported account types | ✅ Accounts in this organizational directory only (Single tenant) |
Redirect URI | Leave blank for now (we will configure properly in Step 2) |
Click Register
Step 2 — Configure the Redirect URI (Critical Step)
Open the newly created app
Go to Authentication (Preview)
Click Redirect URI configuration tab
Click + Add Redirect URI
Choose Web
Enter this Redirect URI exactly:
https://analytics.voicegain.ai/auth-svc/openid-relay/callbackEnsure:
❌ Nothing is checked under Implicit grant and hybrid flows
We are using Authorization Code Flow
Click Configure
✔️ Redirect URI must match exactly (including https and no trailing slash)
Step 3 — Create Client Secret
Go to Certificates & secrets
Click + New client secret
Add:
Description:
Speech Analytics OIDCExpiration: choose per security policy (e.g., 12 months)
Click Add
Immediately copy the Secret Value - you will need to enter it later into the Speech Analytics App
You now have:
✅ Client ID (Application ID - can be seen on the Overview page)
✅ Client Secret (value you just copied)
✅ Tenant ID (Directory ID - also on the Overview page)
Step 4 — Get the OIDC Discovery URL
Go to Overview
Click Endpoints
Copy the:
OpenID Connect metadata document (2nd from the bottom)
It will look like:
https://login.microsoftonline.com/<TENANT_ID>/v2.0/.well-known/openid-configuration⚠️ Because we are using Single Tenant, make sure it contains your actual tenant ID — NOT common or organizations.
Example:
https://login.microsoftonline.com/b9a30004-c2c6-4ab8-ab9f-16c7c23835fb/v2.0/.well-known/openid-configurationThis is the ONLY URL you need to paste into Speech Analytics.
Step 5 — Add ID Token Claims
Speech Analytics maps users by email so we need to also do the following:
Go to Token configuration
Click + Add optional claim
Select:
Token type: ID
Then select:
emailpreferred_usernamegiven_namefamily_name
Click Add
Check the box “Turn on the Microsoft Graph email, profile permission (required for claims to appear in token).”
Click Add
This ensures user identity fields are available during login.
Step 6 — No Enterprise App Assignment Required
Since the users will be assigned from the Speech Analytics App we do not need to configure Assignment.
PART 2 — Configure Speech Analytics App
Most likely Voicegain will create a Speech Analytics account for you and you will receive an email invitation. Create password and login. This password will allow you later to login using local non-sso login (which can be useful if your OIDC configuration in Speech Analytics App gets broken).
Open OIDC SSO settings - you can access them from Avatar icon (lower left corner), then Edit Profile, then SSO Configuration (bottom icon on the left)
Enable OIDC SSO
Turn ON:
Enable OIDC SSOAllowed Domains
Example:
voicegain.ai This should match the domain of the email addresses of the users in your Entra. If needed you can enter more than on domain.
Discovery Endpoint URL
Paste here the discovery URL that we copied from Entra in Step 4 above:
https://login.microsoftonline.com/<TENANT_ID>/v2.0/.well-known/openid-configuration Client ID
Paste the Client ID we copied in Step 3 above
Application (client) ID From Entra → Overview.
Client Secret
Paste Client Secret you created in Step 3 above.
Client Secret VALUE (Not the Secret ID — the VALUE.)
Save
Click Save
Summing Up
This configuration results in:
✅ OpenID Connect 1.0
✅ OAuth2 Authorization Code Flow
✅ Confidential Client (client secret)
✅ Standard JWT ID token
✅ Microsoft Entra as OIDC Identity Provider
Fully standards compliant.
End-to-End Login Flow (What Happens Internally)
User clicks login
Redirected to:
login.microsoftonline.com/<tenant>/oauth2/v2.0/authorizeUser authenticates
Entra redirects to:
https://analytics.voicegain.ai/auth-svc/openid-relay/callbackSpeech Analytics exchanges authorization code at:
/oauth2/v2.0/tokenID token validated using Entra JWKS
Standard OIDC.
Most Common Errors (If Something Fails)
Error | Cause |
|---|---|
AADSTS50011 | Redirect URI mismatch |
Invalid issuer | Used |
Unauthorized client | Secret incorrect |
Domain blocked | Email domain not in Allowed Domains |
Final Checklist
In Entra:
Single Tenant
Redirect URI added
Client Secret created
Using tenant-specific discovery URL
In Speech Analytics:
OIDC Enabled
Discovery URL correct
Client ID correct
Client Secret correct
Allowed domain matches tenant email domain
Using Speech Analytics with SSO Enabled
The login URL is https://analytics.voicegain.ai/login
On the first page you enter your email, and if it matches the Entra email domain then you will be taken to Standard Microsoft login.
Fallback Local Login
If you had an account on Speech Analytics App before OIDC was configured you can also login using local login: https://analytics.voicegain.ai/login/local
This bypasses OIDC and is handy if somehow the OIDC SSO login is not working.
Inviting Other Users
In order for other users to be able to login and use the Speech Analytics App, the Admin needs to Invite them: start from Avatar icon (lower left corner), then Edit Profile, then Users, then + (in the top right corner).
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article