Configure Azure SAML SSO in Insomnia

Enterprise and uses: Insomnia
TL;DR

Obtain the single sign-on URL from the Insomnia SSO settings and configure a new custom enterprise application in Azure with those values. Copy the Login URL and signing certificate from Azure and enter those in the Insomnia SSO settings. Finally, add users or groups to the Azure app and invite those same users to Insomnia.

Prerequisites

Download and install Insomnia.

This tutorial requires the Owner role in your Insomnia account.

You need:

  • A Microsoft Entra subscription
  • Cloud Application Administrator or Application Administrator permissions

This tutorial requires a verified domain in Insomnia:

  1. Go to Enterprise Controls > Domains and add a new domain.
  2. Add the generated TXT record to your DNS tool.
  3. Click Verify Domain.

If you previously configured Azure SAML SSO for Insomnia using the Microsoft Entra SAML Toolkit from the gallery, you need to recreate the application as a custom non-gallery app to use SCIM provisioning. Your existing SSO configuration cannot be migrated. Follow this guide from the beginning to create a new custom app.

Create the SSO connection in Insomnia

Start the SSO configuration in Insomnia first to get the single sign-on URL and audience URI you’ll need in Azure.

  1. In your Insomnia account settings, click your account at the top right and select Enterprise Controls from the dropdown.
  2. Click SSO in the sidebar and then click Create Connection.
  3. In the SSO settings, enter your company’s domain.

Keep this window open while you configure the settings in Azure.

Create a custom enterprise application and configure SSO settings

Create a custom enterprise application in Azure and configure it with the values from Insomnia.

Do not use the Insomnia app from the Azure application gallery. Gallery apps do not support SCIM provisioning. Creating a custom app is required if you need automatic user provisioning.

  1. In the Microsoft Entra admin center, go to Microsoft Entra ID > Enterprise applications.
  2. Click New application, then click Create your own application.
  3. Enter Insomnia SAML as the application name, select Integrate any other application you don’t find in the gallery (Non-gallery), and click Create.
  4. From the application, select Single Sign-On from the left sidebar, then select SAML.
  5. Configure the following SAML SSO settings:

    Azure setting

    Value

    Identifier (Entity ID) The Audience Restriction field in the Insomnia SSO settings.
    Reply URL The SSO URL in the Insomnia SSO settings.
    Sign on URL The SSO URL in the Insomnia SSO settings.
  6. In the Attributes & Claims settings section, add an attribute and configure the following attribute settings:

    Azure setting

    Value

    Name email
    Source Attribute
    Source attribute user.email
  7. In the Entra application, find and copy the Login URL and the base64 version of the signing certificate.

Enter the sign on URL and signing certificate in the SSO settings in Insomnia

Enter the Login URL and certificate from Azure to finish the SSO configuration in Insomnia.

  1. In the Insomnia SSO settings, enter the Login URL and signing certificate from Azure.
  2. To verify the connection, click Create connection. If the connection is successful, you will get a message that says “Your SAML connection has been successfully updated.”

Add users or groups to the application in Azure

Assign users or groups to the application in Azure. Users cannot log in with SSO until they are invited to Insomnia in the next step.

In Azure, assign users or groups to the app.

Invite users to Insomnia

Invite users to Insomnia. Once they accept, they can log in with SSO.

  1. In your Insomnia account settings, click your account at the top right and select Your organizations.
  2. Click the organization you configured SSO for.
  3. Enter the emails of the users you added to the Azure app and click Invite.

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!