Publishing to Azure Website RRS feed

  • Question

  • After a week of persevering I am finally about to give up on lightswitch due to security issues, lack of documentation and lack of personal ability it seems.....

    I have a hybrid office 365 setup. I am trying to develop an application for sharepoint online, not bothered particularly about the content at the moment, just need to prove the concept. Initially this was easy with the AutoHosted option. Now I need to use Azure as Autohosted has been dropped.

    So, here is what I have done:

    Created a very basic App using VS2013 called ABC1, no intrinsic database, just a data connection to an Azure hosted SQL server VM. Default set of forms to get started, run the app to debug, authenticate against my Office 365 account - hey presto everything works fine.

    In Azure I have created a WebApp called ABC1. Default settings with the exception of Authentication/Authorization which I have selected as AAD for my domain and I have the application of ABC1 https://ABC1.azurewebsites.net authenticating against AAD.

    The application has been registered in SharePoint online using https://[sharepoint site]_layouts/15/AppRegNew.aspx and generating ClientID/Secret Title set to ABC1, AppDomain ABC1.azurewebsites.net Redirect URI https://ABC1.azurewebsites.net

    Publishing the App from VS2013 using above ClientID/Secret works fine, no errors, I can see in Server Explorer/Azure/Websites my published site as required. When I try to access https://ABC1.azurewebsites.net from a browser it asks me for my Office 365 login (so my redirect and Azure AD must be OK) HOWEVER - it then returns an HTTP 403 error - most likely cause: this website requires you to login. If I try to access from an IOS device I get the login page followed by "You do not have permission to view this directory or page"

    For the life of me I cannot see where or how to change permissions on files, if this is actually the problem. I suspect I may have missed something else.

    Thursday, July 9, 2015 2:08 PM