# SSO Integration

* Twig used Auth0 for SSO Setup
* You will need to work with a Twig Expert to setup SSO.
* Here is the information that will be requested during the SSO setup. Please keep it handy.![](/files/RkvInjFMVbUH3vIwRj9E)
* To Learn more about SSO setup. [Please refer to this guide. ](https://auth0.com/docs/authenticate/identity-providers/enterprise-identity-providers/azure-active-directory/v2)

### Setting up SAML&#x20;

{% embed url="<https://www.youtube.com/watch?v=X-mUSY3Ejro>" %}

* Step 1: Open 365 Admin\
  &#x20;![](/files/pLWClQZkcXpT9CMsev7o)

Step 2: In Search Bar Type Enterprize Applications and Open Enterprize Application

<figure><img src="/files/nBHVpW7xM83wjshMCoih" alt=""><figcaption></figcaption></figure>

Step 3: Click on New Application<br>

<figure><img src="/files/MBpG69X9KzB1ASWWJsSP" alt=""><figcaption></figcaption></figure>

Step 4: Click on Create your own Application, and Give it a Name. Note the name you will need it later. Select "Integrate any other application". Click Create<br>

<figure><img src="/files/RYtyp1p8HYW6uZDDxqBx" alt=""><figcaption></figcaption></figure>

Step 5: Now add these values\
**Identifier (Entity ID):** urn:auth0:twig-prod:\<name-of-application>&#x20;

**Reply URL:** <https://twig-prod.us.auth0.com/login/callback?connection=\\><name-of-application> \
Click on Save<br>

<figure><img src="/files/GRhzeUj67iHLrFE3CZkH" alt=""><figcaption></figcaption></figure>

Step 6:&#x20;

Download Base 64 Certificate\
Copy Login URL<br>

<figure><img src="/files/8cren5bMc0LwApcJvzep" alt=""><figcaption></figcaption></figure>

Step 7:

Twig Support: Go to Auth0, Select twig-prod tenant, go to Authentication>Enterprize>SAML . Create new connection&#x20;

<figure><img src="/files/khJWy0I7w1nuXWCbMPOw" alt=""><figcaption></figcaption></figure>

Step 8:

Use the same application name used in step 4. Paste the login url in login url and logout url text areas. Upload the downloaded certificate&#x20;

<figure><img src="/files/NyT3CfYsBEEib8fqmAoH" alt=""><figcaption></figcaption></figure>

Step 9:

Under Applications tab , enable application&#x20;

<figure><img src="/files/cuecEvgJUEipTKGJBKh7" alt=""><figcaption></figcaption></figure>

Step 10:

Under connections click on try, It should take you to login page that shows it worked<br>

<figure><img src="/files/YubUT6cyMUqvoQJ1HDPS" alt=""><figcaption></figcaption></figure>

Step 11:\
Under login experience, enter the email domain name. This lets Auth0 know to take user to the specific login when user has this domain<br>

<figure><img src="/files/kxzywf6oM8t9IpQWDxbO" alt=""><figcaption></figcaption></figure>

Remember to add users to the application in Azure. \
\
Now login to <https://app.twig.so> and login with your enterprize email id. Make sure your user has been added to Twig.

Thats it. You have enables SSO via SAML


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.twig.so/product/security/sso-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
