# 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.![](https://793591400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGnLTEZVzOIwrDhAZQpV1%2Fuploads%2Fd4vFxRHa9MxYsL47DHRz%2Fimage.png?alt=media\&token=c08107aa-0426-4ddb-bdd5-98eacbb58211)
* 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;![](https://793591400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGnLTEZVzOIwrDhAZQpV1%2Fuploads%2FDB2cashKnoZTYHkkXmvB%2Fimage.png?alt=media\&token=5f00a8ed-267e-4ef1-83ee-8e65f26a0ec0)

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

<figure><img src="https://793591400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGnLTEZVzOIwrDhAZQpV1%2Fuploads%2FBNSyaJNhV4F3lSeibaHp%2Fimage.png?alt=media&#x26;token=485e611b-f6cc-4006-9953-99ae4302b526" alt=""><figcaption></figcaption></figure>

Step 3: Click on New Application<br>

<figure><img src="https://793591400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGnLTEZVzOIwrDhAZQpV1%2Fuploads%2FNnALHXuN9WN1jpeifpIm%2Fimage.png?alt=media&#x26;token=fbb60f26-da6f-4c6f-ab9f-4aab04fe037c" 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="https://793591400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGnLTEZVzOIwrDhAZQpV1%2Fuploads%2FYzxhSbvR1c8BrHVPZZB5%2Fimage.png?alt=media&#x26;token=5398dcf0-a4a9-4905-ae63-a6dc95044af7" 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="https://793591400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGnLTEZVzOIwrDhAZQpV1%2Fuploads%2Fgte3mfJ63xebQgc7wDuj%2Fimage.png?alt=media&#x26;token=a7b466a3-98f3-448f-9113-b36f700d436e" alt=""><figcaption></figcaption></figure>

Step 6:&#x20;

Download Base 64 Certificate\
Copy Login URL<br>

<figure><img src="https://793591400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGnLTEZVzOIwrDhAZQpV1%2Fuploads%2Fl9ss6hYEO5qAfSE37QQF%2Fimage.png?alt=media&#x26;token=eefdb244-c0d0-41f2-879d-96e027175c78" 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="https://793591400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGnLTEZVzOIwrDhAZQpV1%2Fuploads%2FRxty69rRhw14NPr6IOdf%2Fimage.png?alt=media&#x26;token=bee8b527-5d5b-4884-8f5e-aa5c17c3e3f6" 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="https://793591400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGnLTEZVzOIwrDhAZQpV1%2Fuploads%2F5ShrBOm55O0cIc00JJY6%2Fimage.png?alt=media&#x26;token=55bd3e29-724c-473c-a821-a7e8656badd6" alt=""><figcaption></figcaption></figure>

Step 9:

Under Applications tab , enable application&#x20;

<figure><img src="https://793591400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGnLTEZVzOIwrDhAZQpV1%2Fuploads%2FfocDYdtT0gNKaRZbTALH%2Fimage.png?alt=media&#x26;token=8b7a1623-5c60-4c35-a09d-d305a0272886" 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="https://793591400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGnLTEZVzOIwrDhAZQpV1%2Fuploads%2F3LKJ6eKN5PbfP3lw2Yyg%2Fimage.png?alt=media&#x26;token=49f93788-b3fd-48a1-986e-ae726ec62d5b" 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="https://793591400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGnLTEZVzOIwrDhAZQpV1%2Fuploads%2Fg39LUDNelZz9RpXjmmJy%2Fimage.png?alt=media&#x26;token=2c361d2f-e5cd-416c-a61e-ebc1dcfaff2b" 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
