---
title: Single Sign On (SSO)
slug: docs/single-sign-on
createdAt: 2024-07-19T12:50:15.049Z
---

# SAML SSO in Amberflo

Amberflo supports **Single Sign-On (SSO)** via **SAML** to enhance security and simplify user access for corporate accounts. This feature allows IT administrators to manage employee access centrally and eliminates the need for separate Amberflo credentials.

### How It Works

Once SSO is enabled:

- Users can log in using their **corporate identity**.
- On the login page, they should select **Continue with SSO** at the bottom of the Email/Password login form.
- On the SSO sign-in screen, users enter their **corporate email address** and click **Sign In** to authenticate through their identity provider.

This setup ensures secure, passwordless access to Amberflo for your organization’s team members.



![](https://files.readme.io/7048059-amberflo-sign-in.jpeg)



![](https://files.readme.io/7858ad1-amberflo-sso-sign-in.jpeg)

When they do so, we identify the domain from their email address. The domain is used to link this user to the Amberflo account that is associated with the same domain, and then, we automatically create Amberflo users for the account.

## Getting Started with SAML SSO

Once logged in, navigate to the **[SSO Configuration](https://ui.amberflo.io/settings/account/sso)** page. There, you’ll see:

- A list of verified email domains associated with your account.
- The Identity Providers (IdPs) configured for each domain.

If you do not have any email domains verified, you will be asked to contact us.



![](https://files.readme.io/8fc053b-sso-1.png)

## Domain Verification

If no email domains are verified yet, you’ll be prompted to contact Amberflo Support.

To start the verification process:

1. [Contact support](mailto\:support@amberflo.io?subject=SSO%20domain%20verification%20request) with the domain you want to associate with your Amberflo account.
2. Once ownership is verified, the domain will appear in your list.
3. Afterward, you can configure an IdP for that domain.

**Note:&#x20;**&#x4F;nce an IdP is configured, anyone with an email address from the verified domain will be able to log in using SSO.

## Identity Provider Configuration

Amberflo supports **any Identity Provider (IdP)** that adheres to the **[SAML standard](https://en.wikipedia.org/wiki/Security_Assertion_Markup_Language)**, including all major enterprise identity platforms.

To configure:

1. In your IdP, set up Amberflo as a new application using the **SSO URL** and **Audience** values from Amberflo.
   - These can be found on the Amberflo **[SSO Settings](https://ui.amberflo.io/settings/access-security/sso)** page by clicking **Configure** on a verified domain.
2. Register your IdP in Amberflo by providing one of the following:
   - **Metadata URL**
   - **Metadata XML**

You may also assign a **Name** to your IdP for display purposes in the UI.



![](https://files.readme.io/bbd0f94-sso-2.jpeg)

Now, your colleagues can sign in to your Amberflo account using their corporate identity.

# FAQ

### SSO vs Password Sign-In

- Each user can only use **one sign-in method**: either SSO or password-based login.
- If your team is using SSO, it’s recommended to maintain a **single password-based "root" user** and have all other users sign in via SSO.
- If a user currently signs in with a password and needs to switch to SSO, they must first be **removed from the account**.
- When a user signs in with SSO for the first time, they are automatically assigned the **Analyst role**. If the user previously had a different role, you’ll need to **manually update their role** after the switch.

### IdP-Initiated Sign-In

- Amberflo **does not support IdP-initiated sign-ins** (i.e., starting login from your Identity Provider's dashboard).
- Users must visit https:[//ui.amberflo.io](https://ui.amberflo.io/) and click **Continue with SSO** to log in.
- Attempting to log in directly from the IdP may result in the following error: *Invalid samlResponse or relayState from identity provider*

**Workaround:**

Create a “bookmark” or “link app” in your IdP that directs users to [https://ui.amberflo.io](https://ui.amberflo.io) to initiate the login flow correctly.

## Common errors

**Invalid samlResponse or relayState from identity provider**

- This typically occurs when trying to perform an **IdP-initiated login**, which is not supported by Amberflo.
- Ensure users always start from the Amberflo login page to avoid this error.

# Appendix: Identity Provider Setup

You’ll find instructions for specific identity providers below. If your provider isn’t listed, please reach out to us for assistance.

## Okta

On your Okta admin console, navigate to **Applications**, click **Create App Integration**, select **SAML 2.0**, then click **Next**.



![](https://files.readme.io/e5a748d-okta-1-select-saml2.png)

On the **General Settings**, set the **App name** to "Amberflo" then click **Next**.

![](https://files.readme.io/f3955a4-okta-2-general-settings.png)

On the **SAML Settings**, set the fields like this:

| **Field**                   | **Value**                                                                                                                                  |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| Single sign on URL          | The **SSO URL** given when configuring a domain from the [SSO config page](https://ui.amberflo.io/settings/access-security/sso)            |
| Audience URI (SP Entity ID) | The **Audience&#x20;**&#x67;iven when configuring a domain from the [SSO config page](https://ui.amberflo.io/settings/access-security/sso) |
| Name ID format              | Set to `EmailAddress`                                                                                                                      |
| Application username        | Set to `Email`                                                                                                                             |

Leave the other fields with the default values.

![](https://files.readme.io/82f6be9-okta-3-saml-settings-a.png)

Scroll down to **Attribute Statements**. Add a single entry:

| **Name**                                                                                                                                   | **Name Format** | **Value**    |
| ------------------------------------------------------------------------------------------------------------------------------------------ | --------------- | ------------ |
| [`http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress`](http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress) | Unspecified     | `user.email` |

![](https://api.archbee.com/api/optimize/GQ6FhONXoR2DQjp03hOcB/VKfwaGyo7Hi3EDhXeneJe_image.png)

Scroll down and click **Next**.

Now select **I'm an Okta customer adding an internal app** and click **Finish**.

You'll see a box highlighted in yellow. It contains a link to the **identity provider metadata**. Copy this link and input it when registering the IdP in Amberflo.



![](https://files.readme.io/ccbbf63-okta-5-metadata.png)

That's it.

### Troubleshooting Okta SSO

**Error:** `Invalid samlResponse or relayState from identity provider`

This error occurs because our authentication service does **not support** an authentication flow initiated from the Identity Provider (IdP) app.

### To resolve:

- Go to https\://ui.amberflo.io and click **Continue with SSO**
- Or navigate directly to [https://ui.amberflo.io/sso](https://ui.amberflo.io/sso)

### Alternative workaround:

You can **bookmark the direct login link** in Okta. Follow [Okta's bookmark app instructions](https://help.okta.com/oag/en-us/Content/Topics/Access-Gateway/add-app-saml-pass-thru-add-bookmark.htm).
&#x20;If you need your direct login link, please [contact us](mailto\:support@amberflo.io) and we’ll provide it.

## Auth0

On your Auth0 admin console, navigate to **Applications**, click **Create Application**, type in "Amberflo" in the **Name** field, select **Single Page Web Applications**, and then click **Next**.

![](https://files.readme.io/74668ed-auth0-1-create-app.png)

Now go to the **Addons** tab and activate the **SAML2** addon.



![](https://files.readme.io/483058e-auth-2-saml-addon.png)

On the addon configuration modal, go to the **Settings** tab.

Add Amberflo's **SSO URL** in the **Application Callback URL** field, and update the **Settings JSON** to the following value, making sure to use the Amberflo provided **Audience** value.

```json
{
  "audience": "<Amberflo's Audience>",
  "mappings": {
    "email": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"
  },
  "nameIdentifierFormat": "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress",
  "nameIdentifierProbes": [
    "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"
  ]
}
```



![](https://files.readme.io/fa62fc8-auth0-3-saml-config.png)

Scroll down and click **Save**.

Now go back to the **Settings** tab. You'll see an **Identity Provider Metadata** download link. Copy this link and input it when creating the identity provider in Amberflo.



![](https://files.readme.io/3039ea4-auth0-4-metadata.png)

That's it.

## Google Workspace

On your [Google Workspace admin console](https://admin.google.com/), navigate to **Apps** > **Web and mobile apps**.



![](https://files.readme.io/beb8c46-google-web-mobile-apps.jpeg)

Click **Add App** > **Add custom SAML app**.



![](https://files.readme.io/4990b73-google-add-custom-saml-app.jpeg)

On the **App Details** page, enter the name of the custom app. In our example, we named it amberflo. Click **Continue**.



![](https://files.readme.io/f2a3618-google-name-saml-app.jpeg)

On the **Google Identity Provider details** page, get the setup information needed by the service provider using the **Download the IdP metadata** option. You will use the provided XML for the **Metadata XML** value when configuring your IdP in Amberflo. Click **Continue**.



![](https://files.readme.io/72b88a2-google-download-saml-data.jpeg)

In the Service Provider Details window, enter an `ACS URL` and `Entity ID`. These values are all provided by clicking the **Configure** button for the domain you are configuring at [Settings > Security > Single Sign-on](https://ui.amberflo.io/settings/access-security/sso). Use the **Single Sign-On URL** for **ACS URL** value and **Audience Restriction Value** for **Entity ID**

In the **Name ID** Format dropdown, select `EMAIL`. In the **Name ID dropdown**, select `Basic Information > Primary Email`. Click **Continue**.

![](https://api.archbee.com/api/optimize/GQ6FhONXoR2DQjp03hOcB/TwhJydqqdUaqSawidTuqU_image.png)

Under Google Directory attributes, select `Primary email` in the Google Directory attributes dropdown. Under App attributes input, enter [`http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress`](http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress) Click **Finish**.



![](https://files.readme.io/164a18f-google-saml-attributes.jpeg)




Back on your [Google Workspace admin console](https://admin.google.com/), navigate to **Apps** > **Web and mobile apps**.
Select your newly created SAML app. Click **User access**.



![](https://files.readme.io/27d18d4-google-app-user-access.jpeg)

To turn on a service for everyone in your organization. Click **On** for everyone and then click **Save**.



![](https://files.readme.io/3d2c433-google-user-access-on.jpeg)

After finishing this setup process, you will need to log out of your Google Workspace account and **clear your cache**. If you do not, you may see a `not_a_saml_app` error. After logging out of your account, if you still encounter this error, you may need to wait a few minutes for Google to associate your workspace with Amberflo.

That's it.

### Troubleshooting Google Workspace SSO

### Error: `Invalid samlResponse or relayState from identity provider`

This error occurs when attempting to initiate login from the Identity Provider (IdP) app.
&#x20;Amberflo **does not support IdP-initiated sign-ins**.

**To resolve:**

- Visit [https://ui.amberflo.io](https://ui.amberflo.io)
- Click **Continue with SSO** to log in through SSO

### Error: `app_not_configured_for_user`

This happens when:

- You are signed into a Google account that **is not configured for SSO** with Amberflo
- Google automatically attempts to log in using that account without letting you choose

**To resolve:**

- Make sure you are signed into the correct Google account configured for Amberflo SSO
- Try logging in via an **Incognito/Private** browser window to choose the correct account



