SlideShare uma empresa Scribd logo
1 de 42
Module 3: Hook into Apps for SharePoint
Registration for Los Angeles June 16 2015
http://aka.ms/O365campLA
Course Agenda
Office Camp
Module 1: Introduction to the Day
Module 2: Setting up the Environments
Module 3: Hooking into Apps for SharePoint
Module 4: Hooking into Office 365 APIs
Module 5: Hooking into Apps for Office
Module 6: Hooking into SharePoint APIs with Android
Ivan Sanders
SharePoint MVP/MCT
ivan@dimension-si.com
@iasanders
Remote Web
Azure Web Sites
SharePoint
Online
Generated value
Generated value
Free text value
Azure domain (e.g., myapp.azurewebsites.net)
Web address (e.g., https://myapp.azurewebsites.net)
Web Forms
MVC 5
Remote Web SharePoint
Web Page
SP.RequestExecutor.js
IFRAME App Web
AppWebProxy.aspxAppWebProxy.aspx
O365 DEVCamp Los Angeles June 16, 2015 Module 03 Hook into Apps for Sharepoint
O365 DEVCamp Los Angeles June 16, 2015 Module 03 Hook into Apps for Sharepoint
O365 DEVCamp Los Angeles June 16, 2015 Module 03 Hook into Apps for Sharepoint
O365 DEVCamp Los Angeles June 16, 2015 Module 03 Hook into Apps for Sharepoint

Mais conteúdo relacionado

Mais procurados

Using office add ins to solve business problems-SharePoint Saturday Redmond 2015
Using office add ins to solve business problems-SharePoint Saturday Redmond 2015Using office add ins to solve business problems-SharePoint Saturday Redmond 2015
Using office add ins to solve business problems-SharePoint Saturday Redmond 2015Ryan Schouten
 
Practical Business Intelligence in SharePoint 2013 - Helsinki Finalnd
Practical Business Intelligence in SharePoint 2013 - Helsinki FinalndPractical Business Intelligence in SharePoint 2013 - Helsinki Finalnd
Practical Business Intelligence in SharePoint 2013 - Helsinki FinalndIvan Sanders
 
So You Want To Be A SharePoint Developer-SPS Silicon Valley 2015
So You Want To Be A SharePoint Developer-SPS Silicon Valley 2015So You Want To Be A SharePoint Developer-SPS Silicon Valley 2015
So You Want To Be A SharePoint Developer-SPS Silicon Valley 2015Ryan Schouten
 
How to create custom Connector for Microsoft Flow
How to create custom Connector for Microsoft FlowHow to create custom Connector for Microsoft Flow
How to create custom Connector for Microsoft FlowDragan Panjkov
 
How to: Create a custom connector for Microsoft Flow
How to: Create a custom connector for Microsoft FlowHow to: Create a custom connector for Microsoft Flow
How to: Create a custom connector for Microsoft FlowDragan Panjkov
 
SharePoint Framework SPS Madrid 2016
SharePoint Framework SPS Madrid 2016SharePoint Framework SPS Madrid 2016
SharePoint Framework SPS Madrid 2016Sonja Madsen
 
How to create custom connector for Microsoft Flow - SPSNL18
How to create custom connector for Microsoft Flow - SPSNL18How to create custom connector for Microsoft Flow - SPSNL18
How to create custom connector for Microsoft Flow - SPSNL18Dragan Panjkov
 
Introducción a las Apps para SharePoint
Introducción a las Apps para SharePointIntroducción a las Apps para SharePoint
Introducción a las Apps para SharePointAlberto Diaz Martin
 
Deep dive into office 365 ap is for calendar mail and contacts
Deep dive into office 365 ap is for calendar mail and contactsDeep dive into office 365 ap is for calendar mail and contacts
Deep dive into office 365 ap is for calendar mail and contactsAlberto Diaz Martin
 
Microsoft PowerApps Let’s change the way we build business apps
Microsoft PowerApps Let’s change the way we build business appsMicrosoft PowerApps Let’s change the way we build business apps
Microsoft PowerApps Let’s change the way we build business appsBizTalk360
 
Microsoft Office Web Applications
Microsoft Office Web ApplicationsMicrosoft Office Web Applications
Microsoft Office Web Applicationspearce.alex
 
Introducción a las Apps para Office
Introducción a las Apps para OfficeIntroducción a las Apps para Office
Introducción a las Apps para OfficeAlberto Diaz Martin
 
Technical Overview of Microsoft SharePoint Online - Presented by Atidan
Technical Overview of Microsoft SharePoint Online - Presented by AtidanTechnical Overview of Microsoft SharePoint Online - Presented by Atidan
Technical Overview of Microsoft SharePoint Online - Presented by AtidanDavid J Rosenthal
 
Deep dive into office 365 api for one drive for business
Deep dive into office 365 api for one drive for businessDeep dive into office 365 api for one drive for business
Deep dive into office 365 api for one drive for businessAlberto Diaz Martin
 
Getting started with Office 365 API's
Getting started with Office 365 API'sGetting started with Office 365 API's
Getting started with Office 365 API'sAlberto Diaz Martin
 
Migrating To SharePoint 2010
Migrating To SharePoint 2010Migrating To SharePoint 2010
Migrating To SharePoint 2010Danny Burlage
 
What do you get from share point hybrid
What do you get from share point hybridWhat do you get from share point hybrid
What do you get from share point hybridSamuel Lévesque
 
How to create custom connector for Microsoft Flow
How to create custom connector for Microsoft FlowHow to create custom connector for Microsoft Flow
How to create custom connector for Microsoft FlowDragan Panjkov
 

Mais procurados (20)

Using office add ins to solve business problems-SharePoint Saturday Redmond 2015
Using office add ins to solve business problems-SharePoint Saturday Redmond 2015Using office add ins to solve business problems-SharePoint Saturday Redmond 2015
Using office add ins to solve business problems-SharePoint Saturday Redmond 2015
 
Practical Business Intelligence in SharePoint 2013 - Helsinki Finalnd
Practical Business Intelligence in SharePoint 2013 - Helsinki FinalndPractical Business Intelligence in SharePoint 2013 - Helsinki Finalnd
Practical Business Intelligence in SharePoint 2013 - Helsinki Finalnd
 
So You Want To Be A SharePoint Developer-SPS Silicon Valley 2015
So You Want To Be A SharePoint Developer-SPS Silicon Valley 2015So You Want To Be A SharePoint Developer-SPS Silicon Valley 2015
So You Want To Be A SharePoint Developer-SPS Silicon Valley 2015
 
How to create custom Connector for Microsoft Flow
How to create custom Connector for Microsoft FlowHow to create custom Connector for Microsoft Flow
How to create custom Connector for Microsoft Flow
 
How to: Create a custom connector for Microsoft Flow
How to: Create a custom connector for Microsoft FlowHow to: Create a custom connector for Microsoft Flow
How to: Create a custom connector for Microsoft Flow
 
SharePoint Framework SPS Madrid 2016
SharePoint Framework SPS Madrid 2016SharePoint Framework SPS Madrid 2016
SharePoint Framework SPS Madrid 2016
 
How to create custom connector for Microsoft Flow - SPSNL18
How to create custom connector for Microsoft Flow - SPSNL18How to create custom connector for Microsoft Flow - SPSNL18
How to create custom connector for Microsoft Flow - SPSNL18
 
Introducción a las Apps para SharePoint
Introducción a las Apps para SharePointIntroducción a las Apps para SharePoint
Introducción a las Apps para SharePoint
 
Deep dive into office 365 ap is for calendar mail and contacts
Deep dive into office 365 ap is for calendar mail and contactsDeep dive into office 365 ap is for calendar mail and contacts
Deep dive into office 365 ap is for calendar mail and contacts
 
Microsoft PowerApps Let’s change the way we build business apps
Microsoft PowerApps Let’s change the way we build business appsMicrosoft PowerApps Let’s change the way we build business apps
Microsoft PowerApps Let’s change the way we build business apps
 
Microsoft Office Web Applications
Microsoft Office Web ApplicationsMicrosoft Office Web Applications
Microsoft Office Web Applications
 
Introducción a las Apps para Office
Introducción a las Apps para OfficeIntroducción a las Apps para Office
Introducción a las Apps para Office
 
Technical Overview of Microsoft SharePoint Online - Presented by Atidan
Technical Overview of Microsoft SharePoint Online - Presented by AtidanTechnical Overview of Microsoft SharePoint Online - Presented by Atidan
Technical Overview of Microsoft SharePoint Online - Presented by Atidan
 
Deep dive into office 365 api for one drive for business
Deep dive into office 365 api for one drive for businessDeep dive into office 365 api for one drive for business
Deep dive into office 365 api for one drive for business
 
Getting started with Office 365 API's
Getting started with Office 365 API'sGetting started with Office 365 API's
Getting started with Office 365 API's
 
Migrating To SharePoint 2010
Migrating To SharePoint 2010Migrating To SharePoint 2010
Migrating To SharePoint 2010
 
What do you get from share point hybrid
What do you get from share point hybridWhat do you get from share point hybrid
What do you get from share point hybrid
 
How to create custom connector for Microsoft Flow
How to create custom connector for Microsoft FlowHow to create custom connector for Microsoft Flow
How to create custom connector for Microsoft Flow
 
Office 365 Development Overview
Office 365 Development OverviewOffice 365 Development Overview
Office 365 Development Overview
 
Build & Ignite Cloud Notes
Build & Ignite Cloud NotesBuild & Ignite Cloud Notes
Build & Ignite Cloud Notes
 

Mais de Ivan Sanders

Real world business workflow with SharePoint designer 2013
Real world business workflow with SharePoint designer 2013Real world business workflow with SharePoint designer 2013
Real world business workflow with SharePoint designer 2013Ivan Sanders
 
Practical Business Intelligence with SharePoint 2013
Practical Business Intelligence with SharePoint 2013Practical Business Intelligence with SharePoint 2013
Practical Business Intelligence with SharePoint 2013Ivan Sanders
 
SharePoint 2013 Business Intelligence Demos to build your businesss 2.0
SharePoint 2013 Business Intelligence Demos to build your businesss 2.0SharePoint 2013 Business Intelligence Demos to build your businesss 2.0
SharePoint 2013 Business Intelligence Demos to build your businesss 2.0Ivan Sanders
 
Self-Service Business Intelligence in SharePoint 2013
Self-Service Business Intelligence in SharePoint 2013Self-Service Business Intelligence in SharePoint 2013
Self-Service Business Intelligence in SharePoint 2013Ivan Sanders
 
Practical businerss intelligence in share point 2013
Practical businerss intelligence in share point 2013Practical businerss intelligence in share point 2013
Practical businerss intelligence in share point 2013Ivan Sanders
 
San Fernando Valley SharePoint UserGroup Jully 11, 2012
San Fernando Valley SharePoint UserGroup Jully 11, 2012San Fernando Valley SharePoint UserGroup Jully 11, 2012
San Fernando Valley SharePoint UserGroup Jully 11, 2012Ivan Sanders
 
Enterprise Content Management in SharePoint 2010 inplace autotagging with ter...
Enterprise Content Management in SharePoint 2010 inplace autotagging with ter...Enterprise Content Management in SharePoint 2010 inplace autotagging with ter...
Enterprise Content Management in SharePoint 2010 inplace autotagging with ter...Ivan Sanders
 
Creating Business Intelligence With Share Point 2010
Creating Business Intelligence With Share Point 2010Creating Business Intelligence With Share Point 2010
Creating Business Intelligence With Share Point 2010Ivan Sanders
 
SharePoint Saturday Orlando 2012 Creating Business Intelligence with SharePoi...
SharePoint Saturday Orlando 2012 Creating Business Intelligence with SharePoi...SharePoint Saturday Orlando 2012 Creating Business Intelligence with SharePoi...
SharePoint Saturday Orlando 2012 Creating Business Intelligence with SharePoi...Ivan Sanders
 
SharePoint 2010 Application Lifecycle Management
SharePoint 2010 Application Lifecycle ManagementSharePoint 2010 Application Lifecycle Management
SharePoint 2010 Application Lifecycle ManagementIvan Sanders
 
SharePoint Saturday Houston 2012
SharePoint Saturday Houston 2012SharePoint Saturday Houston 2012
SharePoint Saturday Houston 2012Ivan Sanders
 
Creating Business Intelligence with SharePoint 2010
Creating Business Intelligence  with SharePoint 2010Creating Business Intelligence  with SharePoint 2010
Creating Business Intelligence with SharePoint 2010Ivan Sanders
 
SharePoint Intelligence Real World Business Workflow With Share Point Designe...
SharePoint Intelligence Real World Business Workflow With Share Point Designe...SharePoint Intelligence Real World Business Workflow With Share Point Designe...
SharePoint Intelligence Real World Business Workflow With Share Point Designe...Ivan Sanders
 
SharePoint Intelligence Introduction To Share Point Designer Workflows
SharePoint Intelligence Introduction To Share Point Designer WorkflowsSharePoint Intelligence Introduction To Share Point Designer Workflows
SharePoint Intelligence Introduction To Share Point Designer WorkflowsIvan Sanders
 
SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...
SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...
SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...Ivan Sanders
 
SharePoint Saturday NYC - Business Intelligence
SharePoint Saturday NYC - Business IntelligenceSharePoint Saturday NYC - Business Intelligence
SharePoint Saturday NYC - Business IntelligenceIvan Sanders
 
SharePoint Saturday Sacramento Business Intelligence with SharePoint 2010
SharePoint Saturday Sacramento  Business Intelligence with SharePoint 2010SharePoint Saturday Sacramento  Business Intelligence with SharePoint 2010
SharePoint Saturday Sacramento Business Intelligence with SharePoint 2010Ivan Sanders
 
Ep structured share point development - v.4
Ep   structured share point development - v.4Ep   structured share point development - v.4
Ep structured share point development - v.4Ivan Sanders
 
Developer application lifecycle process and tools - v.5
Developer application lifecycle process and tools - v.5Developer application lifecycle process and tools - v.5
Developer application lifecycle process and tools - v.5Ivan Sanders
 
SharePoint Connections Coast to Coast Developer Boot Camp Crash Course v3
SharePoint Connections Coast to Coast Developer Boot Camp Crash Course v3SharePoint Connections Coast to Coast Developer Boot Camp Crash Course v3
SharePoint Connections Coast to Coast Developer Boot Camp Crash Course v3Ivan Sanders
 

Mais de Ivan Sanders (20)

Real world business workflow with SharePoint designer 2013
Real world business workflow with SharePoint designer 2013Real world business workflow with SharePoint designer 2013
Real world business workflow with SharePoint designer 2013
 
Practical Business Intelligence with SharePoint 2013
Practical Business Intelligence with SharePoint 2013Practical Business Intelligence with SharePoint 2013
Practical Business Intelligence with SharePoint 2013
 
SharePoint 2013 Business Intelligence Demos to build your businesss 2.0
SharePoint 2013 Business Intelligence Demos to build your businesss 2.0SharePoint 2013 Business Intelligence Demos to build your businesss 2.0
SharePoint 2013 Business Intelligence Demos to build your businesss 2.0
 
Self-Service Business Intelligence in SharePoint 2013
Self-Service Business Intelligence in SharePoint 2013Self-Service Business Intelligence in SharePoint 2013
Self-Service Business Intelligence in SharePoint 2013
 
Practical businerss intelligence in share point 2013
Practical businerss intelligence in share point 2013Practical businerss intelligence in share point 2013
Practical businerss intelligence in share point 2013
 
San Fernando Valley SharePoint UserGroup Jully 11, 2012
San Fernando Valley SharePoint UserGroup Jully 11, 2012San Fernando Valley SharePoint UserGroup Jully 11, 2012
San Fernando Valley SharePoint UserGroup Jully 11, 2012
 
Enterprise Content Management in SharePoint 2010 inplace autotagging with ter...
Enterprise Content Management in SharePoint 2010 inplace autotagging with ter...Enterprise Content Management in SharePoint 2010 inplace autotagging with ter...
Enterprise Content Management in SharePoint 2010 inplace autotagging with ter...
 
Creating Business Intelligence With Share Point 2010
Creating Business Intelligence With Share Point 2010Creating Business Intelligence With Share Point 2010
Creating Business Intelligence With Share Point 2010
 
SharePoint Saturday Orlando 2012 Creating Business Intelligence with SharePoi...
SharePoint Saturday Orlando 2012 Creating Business Intelligence with SharePoi...SharePoint Saturday Orlando 2012 Creating Business Intelligence with SharePoi...
SharePoint Saturday Orlando 2012 Creating Business Intelligence with SharePoi...
 
SharePoint 2010 Application Lifecycle Management
SharePoint 2010 Application Lifecycle ManagementSharePoint 2010 Application Lifecycle Management
SharePoint 2010 Application Lifecycle Management
 
SharePoint Saturday Houston 2012
SharePoint Saturday Houston 2012SharePoint Saturday Houston 2012
SharePoint Saturday Houston 2012
 
Creating Business Intelligence with SharePoint 2010
Creating Business Intelligence  with SharePoint 2010Creating Business Intelligence  with SharePoint 2010
Creating Business Intelligence with SharePoint 2010
 
SharePoint Intelligence Real World Business Workflow With Share Point Designe...
SharePoint Intelligence Real World Business Workflow With Share Point Designe...SharePoint Intelligence Real World Business Workflow With Share Point Designe...
SharePoint Intelligence Real World Business Workflow With Share Point Designe...
 
SharePoint Intelligence Introduction To Share Point Designer Workflows
SharePoint Intelligence Introduction To Share Point Designer WorkflowsSharePoint Intelligence Introduction To Share Point Designer Workflows
SharePoint Intelligence Introduction To Share Point Designer Workflows
 
SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...
SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...
SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...
 
SharePoint Saturday NYC - Business Intelligence
SharePoint Saturday NYC - Business IntelligenceSharePoint Saturday NYC - Business Intelligence
SharePoint Saturday NYC - Business Intelligence
 
SharePoint Saturday Sacramento Business Intelligence with SharePoint 2010
SharePoint Saturday Sacramento  Business Intelligence with SharePoint 2010SharePoint Saturday Sacramento  Business Intelligence with SharePoint 2010
SharePoint Saturday Sacramento Business Intelligence with SharePoint 2010
 
Ep structured share point development - v.4
Ep   structured share point development - v.4Ep   structured share point development - v.4
Ep structured share point development - v.4
 
Developer application lifecycle process and tools - v.5
Developer application lifecycle process and tools - v.5Developer application lifecycle process and tools - v.5
Developer application lifecycle process and tools - v.5
 
SharePoint Connections Coast to Coast Developer Boot Camp Crash Course v3
SharePoint Connections Coast to Coast Developer Boot Camp Crash Course v3SharePoint Connections Coast to Coast Developer Boot Camp Crash Course v3
SharePoint Connections Coast to Coast Developer Boot Camp Crash Course v3
 

O365 DEVCamp Los Angeles June 16, 2015 Module 03 Hook into Apps for Sharepoint

Notas do Editor

  1. Remote web is deployed on separate infrastructure Typically this is Azure web sites, but can be anything Solution may or may not have an App Web depending upon whether anything is deployed (like lists or libraries in the App Web) Host web can be accessed by remote web using OAuth or cross-domain library Additional assets like SQL Azure or web-based REST services can be accessed from the remote web and incorporated into the solution
  2. Provider-hosted apps can use “app only” permissions Update the App manifest to indicate this is OK Then you need an app-only token in code
  3. Visual Studio supports both ASP.NET Web Forms and MVC5 On-premises authorization uses S2S Cloud authorization uses OAuth The SharePointContextProvider simplifies token management Managed CSOm and RESt can be used directly from the server side The cross-domain library can be used from JavaScript
  4. OAuth provides a simple mechanism for end-users to grant a third party access to their data and resources without sharing their passwords. It also enables the user to grant access limited by scope and duration.
  5. In the OAuth 2.0 model, access to protected resources is done using access tokens —an object with a specific scope, lifetime, and other access attributes. OAuth access tokens are sometimes compared to valet keys. In the same way as a valet key gives restricted access to a car, allowing a valet to drive it but not open the trunk or the glove compartment, the access token allows a client application restricted access to a user’s data at a resource server via tokens issued by an authorization server in response to the user authorizing access. With OAuth 2.0, a third-party application does not use the resource owner's credentials to access protected resources. Instead, the third-party application obtains an access token. Access tokens are issued to third-party clients by an authorization server with the approval of the resource owner. The client uses the access token to access the protected resources hosted by the resource server.
  6. Apps are first-class principals in SharePoint They have an identifier and permissions, which are tracked in SharePoint through the registration and installation process
  7. Apps must be registered with SharePoint. This page will generate a new client ID and secret for the app. If deployed to Azure, use that information to fill out the rest of the form.
  8. The SharePointContextProvider simplifies the management of context, and tokens It uses a cookie to store the CacheKey, and stores the actual token in session state on the server referenced by the cache key All of this improves performance and makes programming easier
  9. Abstracts the management of tokens to make it easier
  10. ASP.NET Web FoNotice how it will redirect if the token is not valid rms uses the PreInit method to validate the Context Token ASP.NET MVC 5 uses a filter to run essentially the same code Notice how the filter attribute is applied to the controller
  11. SharePointAcsContext and SharePointHightTrustContext both inherit from SharePointContext This means that the same code works in both cloud and on-premises environments
  12. The SharePointContext makes it easy to get the tokens you need
  13. Makes it possible to call the app web or host web from JavaScript in the remote web
  14. You’ll also need Sp.runtime.js Sp.js MicrosoftAjax.js
  15. The remote web loads the SPRequestExecutor.js library The remote web create a new SP.RequestExecutor object, initializing it with the URL of the app web This causes a hidden IFRAME to be created, which loads APPWebProxy.aspx from the LAYOUTS directory The SP.RequestExecutor object uses the HTML5 postmessage command to send requests from the remote web The request is executed by the AppWebProxy.aspx page The response is returned
  16. When calling the host web, you must switch the context
  17. When calling the host web, you must switch the context