> ## Documentation Index
> Fetch the complete documentation index at: https://support.affinity.co/llms.txt
> Use this file to discover all available pages before exploring further.

# How To Set Up Okta SAML For Affinity Access

> Help center reference: How To Set Up Okta SAML For Affinity Access

<Note>
  **How-to** — task-oriented recipe.
</Note>

Set up a custom application within Okta for authentication into Affinity.

* **Note:** Custom SSO is only available for those on our **Enterprise** tier.

1. Click on the **Applications** tab on the left sidebar, then click **Create App Integration**.
   <img src="https://mintcdn.com/support-affinity/gNHMiKP2aDiIOSeo/images/admin-account-auth/how-to-set-up-okta-saml-for-affinity-access/1.jpg?fit=max&auto=format&n=gNHMiKP2aDiIOSeo&q=85&s=971bdfa5e703256edf3208c6191d1fac" alt="" width="1576" height="1408" data-path="images/admin-account-auth/how-to-set-up-okta-saml-for-affinity-access/1.jpg" />
2. On the following pop-up, select **SAML 2.0**, then click **Next**.
   <img src="https://mintcdn.com/support-affinity/gNHMiKP2aDiIOSeo/images/admin-account-auth/how-to-set-up-okta-saml-for-affinity-access/2.jpg?fit=max&auto=format&n=gNHMiKP2aDiIOSeo&q=85&s=9600a1243969220ac1cd1eeaf1e3c003" alt="" width="1896" height="1426" data-path="images/admin-account-auth/how-to-set-up-okta-saml-for-affinity-access/2.jpg" />
3. Under the **General Settings** tab, fill out the **App name**. The **App logo** and **App visibility** fields can be filled out if you'd like. Then, click **Next**.
   <img src="https://mintcdn.com/support-affinity/gNHMiKP2aDiIOSeo/images/admin-account-auth/how-to-set-up-okta-saml-for-affinity-access/3.jpg?fit=max&auto=format&n=gNHMiKP2aDiIOSeo&q=85&s=47012cdb5407c0a2e6475a1051d210e1" alt="" width="2090" height="1396" data-path="images/admin-account-auth/how-to-set-up-okta-saml-for-affinity-access/3.jpg" />
4. Under the **Configure SAML** tab, fill out the following fields:
5. **Single sign-on URL**: Please replace **subdomain** with your actual [Affinity subdomain](/s/article/How-to-find-your-Affinity-subdomain).
   ```text theme={null}
   https://login.affinity.co/auth/{subdomain}/sso/saml-callback
   ```
6. **Audience URI (SP Entity ID)**: affinity. Note: This can be changed to an ID of your preference, however, if it is not "affinity", please provide us with your ID.
7. **Default RelayState**: `{"platform", "web"}`. Note: For an IDP-initiated setup, replace `{"platform", "web"}` with `IDP-INITIATED-FLOW` and let us know at [support@affinity.co](mailto:support@affinity.co).
8. **Name ID Format**: EmailAddress
   <img src="https://mintcdn.com/support-affinity/gNHMiKP2aDiIOSeo/images/admin-account-auth/how-to-set-up-okta-saml-for-affinity-access/4.jpg?fit=max&auto=format&n=gNHMiKP2aDiIOSeo&q=85&s=cb17afebdb4b9d3faef00b8dc264511d" alt="" width="1454" height="1400" data-path="images/admin-account-auth/how-to-set-up-okta-saml-for-affinity-access/4.jpg" />
9. Next, the **Attribute Statements** is **not optional** and **must** be filled out for the user's email address to be returned.
   <img src="https://mintcdn.com/support-affinity/gNHMiKP2aDiIOSeo/images/admin-account-auth/how-to-set-up-okta-saml-for-affinity-access/5.jpg?fit=max&auto=format&n=gNHMiKP2aDiIOSeo&q=85&s=d9bba9256c25481102e23a45d797db2d" alt="" width="1424" height="1178" data-path="images/admin-account-auth/how-to-set-up-okta-saml-for-affinity-access/5.jpg" />
10. Finally, click **Next**, then click **Finish**. This should automatically take you to the Sign On tab for your newly-created application.
11. Scroll down to the **SAML Signing Certificates** section and please provide us with the following (via **Actions** > **View IdP Metadata** or **Actions** > **Download IdP Metadata**):
    * Audience URI (SP Entity ID)
    * IdP metadata URL
    * Optional: Default RelayState (only if it is IDP-initiated)
      <img src="https://mintcdn.com/support-affinity/gNHMiKP2aDiIOSeo/images/admin-account-auth/how-to-set-up-okta-saml-for-affinity-access/6.jpg?fit=max&auto=format&n=gNHMiKP2aDiIOSeo&q=85&s=929c0484553e847a5774a7c9bf344d38" alt="" width="1630" height="864" data-path="images/admin-account-auth/how-to-set-up-okta-saml-for-affinity-access/6.jpg" />
