SAML Configuration for Duo
1. Go to System Settings > Settings > Configure SAML and copy the URL for SAML from your Avanan portal:
![Configure-SAML](https://www.avanan.com/hs-fs/hubfs/Images/Documentation/Common-Files-for%20Documentation/Configure-SAML.png?width=879&height=409&name=Configure-SAML.png)
![SSO-URL](https://www.avanan.com/hs-fs/hubfs/Images/Documentation/Common-Files-for%20Documentation/SSO-URL.png?width=495&height=150&name=SSO-URL.png)
2. On your DUO dashboard, click Applications > Protect an Application.
3. Search for “SAML - Service Provider” and click “Protect this Application”.
![duo-3](https://www.avanan.com/hs-fs/hubfs/Images/Documentation/SAML%20-%20DUO/duo-3.png?width=600&name=duo-3.png)
4. On the SAML - Service Provider page, do these:
- In the Service provider name field, enter a name for the application.
- In the Entity ID field, enter a unique Entity ID
- In the Assertion Consumer Service field, enter the URI you copied in step 1.
![duo-4](https://www.avanan.com/hs-fs/hubfs/Images/Documentation/SAML%20-%20DUO/duo-4.png?width=600&name=duo-4.png)
5. In the NameID format, select transient and click Save Configuration.
![duo-5](https://www.avanan.com/hs-fs/hubfs/Images/Documentation/SAML%20-%20DUO/duo-5.png?width=600&name=duo-5.png)
6. Click Download your configuration file and save the configuration file (JSON).
![duo-6](https://www.avanan.com/hs-fs/hubfs/Images/Documentation/SAML%20-%20DUO/duo-6.png?width=600&name=duo-6.png)
7. Follow this guide from the “Create Your Cloud Application in Duo” section, and save the metadata mentioned on the “Configure Your Service Provider”:
![Avanan-SAML-DUO](https://www.avanan.com/hs-fs/hubfs/Images/Documentation/Common-Files-for%20Documentation/Avanan-SAML-DUO.png?width=442&height=342&name=Avanan-SAML-DUO.png)
8. In the Avanan portal, do these:
- Select the “Upload a metadata file” checkbox.
- Click Choose file and select the XML file you saved in step 7.
- Select the “Are you using Azure AD?” checkbox,
- In the EntityID field, enter the unique Entity ID you entered in step 4.b, and click Save.
![Configure-SAML-new](https://www.avanan.com/hs-fs/hubfs/Images/Documentation/Common-Files-for%20Documentation/Configure-SAML-new.png?width=490&height=510&name=Configure-SAML-new.png)