1. Configure Azure AD for SharePoint: http://helpdocs.shareknowledge.com/unsorted/using-azure-ad-for-sharepoint-authentication
  2. Create and configure a Native Application in the Azure Active Directory (https://portal.azure.com):
    1. Click the “Azure Active Directory” item - “App Registrations” - “New Application Registration”:
      Untitled01.png
    2. Populate the form and click “Create”:
      The “Name” field = “ShareKnowledge Native Application” (as an example).
      The “Application type” field = “Native”.
      The “Redirect URI” field = should be the same as the “Home Page” field of your Web App (“Azure Active Directory” - “App Registrations” - “All Apps” - click on the web application - the “Home Page” field).
      Untitled03.png
      Untitled02.png
    3. Go to “Azure Active Directory” - “App Registrations” - “All Apps” - click on the Native Application:
      Untitled03_1.png
    4. Click the “Settings” item - “Required Permissions”:
      Untitled04.png
    5. Click “Add” - “Select an API”:
      Untitled05.png
      Untitled05_1.png
    6. Type the name of the Web Application that was created at step #1 - “Select”:
      Untitled06.png
    7. Check the box related to this permission - ”Select” - “Done”:
      Untitled07.png
      Untitled08.png
    8. Click “Grant permissions” - “Yes”:
      Untitled09.png
  3. In ShareKnowledge, populate the “Deployment.Authentication.AzureAD.Native.ApplicationId” system property with the “Application ID” of the Native App (“Azure Active Directory” - “App Registrations” - click on the Native App - copy the “Application ID” field). Recycle the ShareKnowledge application pool.
    Untitled10.png
    Untitled11.png