When you connect Insomnia to Azure Key Vault, Azure prompts for OAuth consent in a browser. The requested scopes define the permissions Insomnia uses to authenticate and access secrets.
Use the following required scopes:
-
openid: Support sign-in with Microsoft Entra ID.
-
profile: Provide basic account information that’s required for authentication.
-
offline_access: Allow authentication to persist without repeated sign-in.
-
user_impersonation: Grant delegated access to Azure Key Vault and allow secret retrieval using the signed-in user’s existing permissions.
Azure enforces these permissions during consent and applies Key Vault access control based on the user’s assigned roles. For more information about required scopes, go to Scopes and permissions.
To choose Azure Key Vault:
- In the Insomnia app, from your account settings, click Preferences.
- Click the Cloud Credentials tab.
- Click Add Credentials.
- Click Azure.
- You will be redirected to authorize Insomnia in your browser.
- After authorization, you’ll return to Insomnia with your Azure account credential added.
Azure Key Vault access uses delegated permissions. The Azure account that you sign in with in Insomnia, the Azure app registration, and the Azure Key Vault must belong to the same Azure organization, unless cross-organization access is explicitly configured in Azure. If these are in different organizations, Azure can deny access even when the correct scopes are granted.