首页 > 代码库 > How to develop a provider hosted App that is hosted in Azure websites and linked to SharePoint Online?
How to develop a provider hosted App that is hosted in Azure websites and linked to SharePoint Online?
Prerequisites
- SharePoint Office 365 site: You can select the developer template to create your site collection. If you haven’t O365 account, you can go to the web site and apply a free account.
If you need select the publishing portal template, you need enable Side Loading feature to support App install through SharePoint Online Management Shell Tools. Here, you can get the powershell named EnableSideLoading.ps1.
- Windows Azure Web Site: We use the Windows Azure Web Site to host your SharePoint provider host App.
After the Office 365 SharePoint site collection and windows azure web site have been created, let’s get into business.
- We open VS2013 and create a provider hosted demo:
- Type the Office 365 SharePoint365 site collection URL, and select Provider-Hosted radio box.
- Here, I select web forms application, you can choose MVC web application if you wanted.
- Select ACS authentication.
- You will find there are two projects that have been created. In fact, ProviderHostedAppDemo is SharePoint provider-hosted app, and the ProviderHostedAppDemoWeb is the web site that provider-hosted app hosted.
- Press F5 key to start debug, there is a hint as bellow, select Trust It.
- We will enter the remote web site.
- Where is the provider-hosted app, you can open site contents of the SharePoint Collection, you can find there is an app named ProviderHostedAppDemo, when you click this app, it will take you to the remote web site.
- ?Now you have known what SharePoint provider-hosted app is, now the app is hosted on my development machine not windows azure site, you will find app that is hosted in windows azure site in the following chapter. Next chapter I will take you to see how to create, read, write a list to SharePoint from remote web.
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。