I am trying to use Office365 APIs in provider hosted app. I created a basic project and when I debug it, it runs perfectly in my local system. After that I hosted it in my Azure website (following Kirk Evans Blog). But now it is giving me Bad Request
error when I am accessing it from my Office365 SP developer site.
Any help?
Edit: The app is created using MVC. When we add Office365 API in our project a controller Office365CommonController
is added by default. My azure web site is saying https://{sitename}.azurewebsites.net/Office365Common is not valid
It works fine in local host.
Edit: When we add O365 APIs in our MVC project another client id gets created
<add key="ida:ClientID" value="" />
<add key="ida:Password" value="" />
Should we use this client id and password when we register our app on SP or generate a new one?