In SharePoint 2013 Online, to add a provider hosted app into your SharePoint site collection. It is required to register the app with SharePoint App store. Only on successful registration of the app, we can add our custom provider hosted apps into any of our site collection.
Assuming that you are having knowledge on Provider Hosted apps in SharePoint 2013. Again to say as one liner, Provider Hosted Apps are simply a SharePoint app where the code in your app runs in a space you provide (Normally Windows Azure).
To make your custom web app (hosted in Azure box) render inside SharePoint Online 2013 site collection, Your app should be authenticated by SP2013 environment. For this, we need to register it in SP2013 environment. To do so,
Navigate to “…/_layouts/15/appregnew.aspx”
- Click on “Generate” button against Client Id & Client Secret to add values in respective fields
- Specify a “Title” for your application registration.
- Specify your remote app server domain URL(e.g: remoteserver.com)
- Specify the web app URL say, your custom web application’s start page hosted in IIS of azure box (https://remoteserver:com/pages/default.aspx).
Clicking on “Create” after successful validations, your app is registered and you need to use this Client ID & Client Secret key in your custom provider hosted web app’s web.config file
<configuration>
……
<appSettings>
<add key="ClientId" value="bde1f191-18d6-4cf3-8498-6ce577375223" />
<add key="ClientSecret" value="6j9zxbbStn9vX9kPb0mTfTLnZd5PlbSKhL5t0aUPfsE=" />
</appSettings>
……
</configuration>
Now your app is registered successfully in SharePoint Online environment.
To retrieve the registered app information afterwards, navigate to the URL “../_layouts/15/appinv.aspx”
To retrieve a list of app principals, navigate to URL “../layouts/15/appprincipals.aspx”
Hope you find your required information. Feel free you post your comments. Thanks.





