Azure OIDC configuration
Configure the identity provider in UnifyApps
Follow the steps below to establish a Single Sign-On (SSO) connection using OpenID Connect between UnifyApps and Microsoft Azure.
STEP 1 · Open Identity Provider Settings
Go to Settings › Security › New Identity Provider, and select Open ID.


STEP 2 · Select Open ID & Copy Callback URL
Select Open ID from the Identity Provider dropdown menu. Locate the Callback URL generated and copy it to your clipboard.


Register the application in Microsoft Azure
STEP 3 · Create a New App Registration
Log into the Azure Portal, go to Microsoft Entra ID (formerly Azure Active Directory), and navigate to App registrations → New registration. Select the appropriate account access level for your organization.
STEP 4 · Configure Redirect URI & Register
In the Redirect URI section, set the platform type to Web and paste the Callback URL you copied from UnifyApps. Click Register.
Use the Callback URL shown in your UnifyApps form. It follows this format: https://{your-domain}/auth/sso/OPEN_ID/complete-login. For mobile apps, the path is /auth/external/sso/OPEN_ID/complete-login.


STEP 5 · Generate Client Secret
Once registered, navigate to Certificates & secrets → Client secrets → New client secret. Select your preferred expiration duration and click Add.
⚠️ Important: Instantly copy the secret Value (not the Secret ID). It will be permanently hidden once you leave the page.


Complete the setup and mapping
STEP 6 · Add Credentials to UnifyApps
Return to the UnifyApps Identity Provider setup page. Copy the Application (client) ID from the app's Overview page in Azure and paste it into the Client ID field. Then paste the Azure secret value into the Client Secret Key field. Also set Client Authentication Type; for a standard Azure app registration with a client secret, this is typically HTTP Basic Authentication.


STEP 7 · Configure Endpoints & Tenant ID
Fill out both the Authorisation URL and the Access Token Endpoint using your specific Azure Tenant ID.
Both fields use a URL containing your Azure tenant ID. Find the tenant ID on the Overview tab of your Azure application.
Sample Authorisation URL: https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/authorize
Sample Access Token Endpoint: https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token
Next, fill out the user info fields. The platform reads the user's details from this endpoint.
User Info Request URL: https://graph.microsoft.com/oidc/userinfo
User Info Request Verb: GET


STEP 8 · Define Scopes & Attribute Mapping
Add the required authentication scopes to specify the level of data access granted to UnifyApps. Next, fill out the Default Attribute Mapping to properly pair Azure user claims with UnifyApps user profiles.
Scopes -
Scopes | Select |
Scope 1 | openid |
Scope 2 | profile |
Scope 3 |


Default Attribute Mapping -
Field | Value |
Username JSON Path | |
Email JSON Path |


Use JSON Pointer-style paths, such as /claim/sub, not dotted paths such as claim.sub. The Username JSON Path is required for matching or creating the platform user, and login fails when it resolves to nothing.
STEP 9 · Assign Users in Azure
Go back to your Azure application dashboard, navigate to Enterprise applications → Users and groups, and assign the specific users or groups who should be allowed to log in via this SSO setup.


STEP 10 · Turn On and Test Sign-In
Back on Settings › Security, make sure the toggle for the new provider is on. Then open a private browser window, go to your UnifyApps login page, and sign in with a user you assigned in Step 9.
Troubleshooting
What you see | What to check |
|---|---|
AADSTS50011 (redirect URI mismatch) | The Redirect URI in Azure must match the Callback URL shown in your UnifyApps form exactly. |
AADSTS7000215 (invalid client secret) | Paste the secret Value, not the Secret ID, into Client Secret Key. |
AADSTS7000222 (expired client secret) | Create a new client secret in Azure and update Client Secret Key. |
AADSTS50105 (user not assigned) | Assign the user or their group to the application, as in Step 9. |
Login fails for some users only | The Username JSON Path /email resolves to nothing when a user has no email address in Microsoft Entra ID. Make sure every user who signs in has one. |
Client secrets expire on the date you chose in Step 5. Create a new secret before then and update Client Secret Key, so sign-in doesn't stop working.