Configure Okta OpenID Connect SSO in Insomnia
Set up an app integration in Okta using values from the Insomnia SSO settings, then copy credentials from Okta back into Insomnia. Add users to the Okta app and invite them to Insomnia
Prerequisites
Insomnia role
This tutorial requires the Owner role in your Insomnia account.
Okta permissions
You need an admin account for Okta.
Domain permissions
This tutorial requires a verified domain in Insomnia:
- Go to Enterprise Controls > Domains and add a new domain.
- Add the generated TXT record to your DNS tool.
- Click Verify Domain.
Create the SSO connection in Insomnia
Begin setting up SSO in Insomnia to get the single sign-on URL and audience URI you’ll need for the Okta configuration.
- In your Insomnia account settings, click your account and select Enterprise Controls from the dropdown.
- Click SSO in the sidebar and then click Create Connection.
- In the SSO settings, enter your company’s domain.
Keep this window open while you configure the settings in Okta.
Configure OIDC SSO in Okta
- In Okta, navigate to Applications > Applications in the sidebar.
- Click Create App Integration.
- Select OIDC - OpenID Connect.
- Select Web Application.
- In the Sign-in redirect URIs field, enter the SSO URL from Insomnia. For example:
https://insomnia-dev.us.auth0.com/login/callback
. - Save your settings, and from the General tab of the application, copy and save your client ID and client secret.
- Click Security > API in the sidebar and navigate to the auth server you want to use.
- Copy the issuer URL for your authorization server.
Enter the Okta information in the SSO settings in Insomnia
Now that Okta SSO is configured and you have the issuer URL, client ID, and client secret from Okta, you can finish configuring the SSO settings in Insomnia.
- In the Insomnia SSO settings, enter the issuer URL, client ID, and client secret from Okta.
- To verify the connection, click Create connection. If the connection is successful, you will get a message that says “Your OIDC connection has been successfully updated.”
Add users or groups to the application in Okta
Assign users or groups to the Okta app integration. They won’t be able to log in with SSO yet, but this step is required.
Invite users to Insomnia
Now that users or groups are assigned to the app in Okta, you can start inviting users to Insomnia. Once they accept the invite, they can log in to Insomnia with SSO.
- In your Insomnia account settings, click your account at the top right and select Your organizations.
- Click the organization you configured SSO for.
- Enter the emails of the users you added to the Okta app and click Invite.