Entra ID Authentication for Azure SQL
Connect to Azure SQL databases with Microsoft Entra ID instead of a stored password
Users can connect to Azure SQL databases with their Microsoft Entra ID account instead of a stored password.
Sign in from KeeperDB Desktop
KeeperDB Desktop (v2.3.0 or later) connects to Azure SQL with Entra ID directly. No Gateway, app registration or Vault setup is needed. Users must still exist in the database as Entra users.
Create a SQL Server connection and enter the Azure SQL host and database.
Click Advanced… and set Authentication to Azure AD Token (Entra ID) and click OK.
Click Sign in with Microsoft and complete sign-in with your Microsoft account in the browser tab that opens.
Click Connect.

To use a token instead, paste an Entra ID access token for Azure SQL into Access Token.
Sign in from the Keeper Vault
In order to connect to an SQL Server with Entra ID authentication, the App Registration must be configured for the Keeper Gateway, and the PAM Database must be configured to support the Entra ID auth option.
Prerequisites
Ensure you are using Keeper Gateway v1.9.0 or later
The PAM Database record must be configured under a PAM Configuration for an Azure configuration environment with the Client ID, Tenant ID and Client Secret set.
The Azure App Registration has API Permissions for SQL Database Authentication enabled per the instructions.
Step 1: Enable Entra ID on the PAM Database record
Edit the record → PAM Settings → Connection → Authentication Methods:
Allow Entra ID Authentication (enabled by default when Azure PAM configuration is selected)
Use browser session token: users sign in through a Microsoft pop-up (MFA supported)
Allow user to paste a token: users paste an access token they got themselves
Entra ID — Username & Password (Legacy): signs in with the record's Launch Credential, which must be an Entra account. This method doesn't support MFA.

Step 2: Connect
Launch the connection and choose Sign in with Entra ID from the credential dropdown. The Web Vault opens Microsoft sign-in in a pop-up, so allow pop-ups for the Vault. To use the other methods, choose Enter Entra ID Token or a credential under Launch Credentials — Entra ID (Legacy).

Common Sign-in Errors
AADSTS500113 / AADSTS50011
The redirect URI is missing or doesn't match. Add the URIs from Requirements.
AADSTS9002326 / AADSTS9002327
The redirect URI is registered under the wrong platform. Move it to Single-page application.
AADSTS650057
Add the Azure SQL Database user_impersonation permission and grant admin consent.
AADSTS7000218 (Legacy)
Add a client secret to the Azure PAM Configuration.
AADSTS50076 (Legacy)
The account requires MFA, which the Legacy method can't satisfy. Use Sign in with Entra ID.
Last updated

