28
Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In/App Model Eric Shupps SharePoint Server MVP

Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

Embed Size (px)

Citation preview

Page 1: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In/App ModelEric ShuppsSharePoint Server MVP

Page 2: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

About Me

@eshupps sharepointcowboywww.sharepointcowboy.-com

slideshare.net/eshupps linkedin.com/in/eshupps

Eric ShuppsSharePoint Server MVP

Page 3: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

Agenda

Design

Welcome to the dark side.

Authorization

API’s

Conversion

Deployment

Page 4: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

Design

Page 5: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

Legacy

Solution

FullTrust

Sandbox

FeatureManifestWebPart

WSP

I don’t think they like your solution. I don’t

like it either.

Page 6: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

Next Generation

Solution

OAuth REST

DataWebApp

Client

The odds of deploying your app are approximately

3,720 to 1.

Page 7: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

Architecture

SharePoint 2013

Sites ServicesContent

API

Oauth

App

Package HTML/JS Data

If you deploy me I shall become more powerful than you

can possibly imagine.

Page 8: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

Authorization

Page 9: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

• Open standard for app integration and authorization• Authentication

independent• “Valet Key”• Access• Permissions

OAuth

Page 10: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

What OAuth is NOT

Authentication

Page 11: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

How OAuth Works

User App Provider

User requests access

App requests Request Token

Provider returns Request Token

App builds auth link w/ Request

Token

User requests URL + Request Token

Provider returns access token

User requests URL + Access Token

App validates access token

Access token validated

User granted access

1

2

3

Page 12: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

OAuth in Apps

I am your token.

Page 13: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

DEMOEstablishing Context

Page 14: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

API’s

Page 15: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

Client Object Model

.NET

Compiled

Synchronous

Server Side

These are not the clients we’re looking

for.Supports NTLM

Page 16: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

DEMORetrieving List Items via CSOM

Page 17: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

JavaScript Object Model

The code is strong with this one.

JavaScript

Asynchronous

Client Side

Inherited Context

Must Run in SP

Page 18: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

DEMOCreating a Library with JSOM

Page 19: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

REST

REST

Asynchronous

Client Side

Remote Endpoints

ODATA

Async or async not. There is no sync.

Page 20: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

Unified

REST

O365 Only

Delve

Users FilesGroups

MailContact

sCalenda

r

Perhaps if you give me your token I’ll forget I found you.

Page 21: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

DEMOUploading a Document via REST

Page 22: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

Conversion

Page 23: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

Old vs. New

Web Parts App Parts

Application Pages Web Pages

Timer Jobs Web Jobs

List Templates Code

Web Templates Provisioning

Event ReceiversRemote Event Receivers

Page 24: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

DEMORemote Site Provisioning

Page 25: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

Deployment

Page 26: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

Delivery

AppCatalog

OfficeStore

Private

Package Validation

No Licensing

Public

App Validation

Licensing Framework

Get yousa apps outta meesa store!

Page 27: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

On Premise

I trust yousa. Does yousa trust

meesa?

High Trust

Certificates

Token Issuers

Client ID’s and Secrets

Low Trust

Azure ACS

Hybrid

Tokens

Page 28: Creating Cloud-Ready Enterprise Applications with the SharePoint 2013 Add-In Model.pptx

Azure

Single Sign On

User & Group Assignment

App Permissions

App Launcher

Azure Portal

Help me, Azure. You’re my only hope.