SAML Configuration for Azure

This document is a step-by-step guide to setting up an Azure app as your IDP (identity provider) to allow SAML authentication.
 
  1. Navigate to https://aad.portal.azure.com and click Enterprise applications from the left navigation pane.

    SAML-Azure-1

  2. Click new application.
    SAML-Azure-2

  3. Select Non-gallery application.
    SAML-Azure-3

  4. Enter a name for the application and click Add.
    SAML-Azure-4

  5. Select Set up single sign on.
    SAML-Azure-5

  6. Select SAML.
    SAML-Azure-6

  7. For the Identifier, enter a unique string. You need this string later.
    SAML-Azure-7

     You need to perform the next two steps from the Avanan portal.
  8. In the Avanan portal, click Security Settings > Settings from the left navigation pane, and then click Configure SAML.
    Configure-SAML

  9. In the Configure SAML window copy the SSO URL.
    SSO-URL

  10. Paste the URL you copied in the previous step into the Identifier (Entity ID) and Reply URL (Assertion Consumer Service URL) fields.
    Saml_configuration-step-10

  11. Place the URL for your Avanan portal in the Sign on URL field and then click save in the top left corner of the window.
    SAML-Azure-11

  12. Click the edit button in the User Attributes & Claims box.
    SAML-Azure-12

  13. Set the unique user identifier to user.mail or user.userprinciplename.
    SAML-Azure-13a

    SAML-Azure-13b

    Note: When choosing user.mail make sure the field is populated for all relevant users, otherwise it will be impossible to authenticate users. 
  14.  Download the Federation Metadata XML File.
    SAML-Azure-14

  15. In the Avanan portal, Configure SAML window, and upload the metadata file.
    Configure-SAML-new

  16. Check off the Are you running Azure AD checkbox.
  17. Under the Azure AD entity ID, enter the Identifier you entered in Azure from step 7, then click Save.
  18. In the Azure portal, click Users and Groups from the menu and then click Add Users.
    SAML-Azure-17
  19. Select the User or Group you want to grant access and click Assign.
    SAML-Azure-18

  20. You should now be able to login to the Avanan portal using the Login with SAML button.
    Avanan-Login-Page