Provider Hosted App (Add-in) on SharePoint Online in 5 steps – Step 3/5

Step 3: Register the app and update the Visual Studio

  • Step 3 a: Register the app in SharePoint
    • Go the URL on your SharePoint Online Site: https://yourname.sharepoint.com /_layouts/15/appregnew.aspx
    • Click generate for Client Id and Secret, new ids will be generated
    • Give a title to the app of your choice
    • Add app domain: This is your Azure web app with out HTTP or HTTPS
    • Redirect URI: You may enter the URI: http://yourazureurl/default.aspx
      • This part is tricky there are developers that use just HTTP and no /default.aspx in the end
    • Please follow Register SharePoint Add-in from MSDN for more informationRegister App on SharePoint online

      This is the most important step of all. Please save the following info you need this information later on!!

      App Identier Created Successfull Message

  • Step 3 b: Update web.config file of the Azure Web App Project: Update ‘Client Id’ and ‘Client Secret’
  • Web Config Changes for Azure Web App
  • Step 3 c :Update the Permissions section of Manifest.xml by double clicking the the fileChange the App Manifest Permissions
  • Step 3 d: Update code of Manifest.xml by right clicking the file and click ‘<> View Code’App Manifest Code File Changes

Continue Step 4: Create Publishing Profiles for Azure Web App and publish>>

Note:  This blog post has been to split into multiple posts as they render fast with fewer images and it will greatly enhance the experience for readers accessing this via mobile devices

Leave a Reply