espc15 - introduction to angularjs in an office 365 context

24
Introduction to AngularJS in an Office 365 context Sébastien Levert, Office Servers and Services MVP Negotium Technologies, Montreal, Canada

Upload: sebastien-levert

Post on 16-Feb-2017

458 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: ESPC15 - Introduction to AngularJS in an Office 365 context

Introduction to AngularJS in an Office 365 context 

Sébastien Levert, Office Servers and Services MVPNegotium Technologies, Montreal, Canada

Page 2: ESPC15 - Introduction to AngularJS in an Office 365 context

Who’s Sébastien Levert ?

Montreal, Canada negotium.comOffice Servers &

Services MVP

Web Developer @sebastienlevert pimpthecloud.com

Page 3: ESPC15 - Introduction to AngularJS in an Office 365 context

Agenda

AngularJSOffice 365 Unified

APISharePoint

Azure AD Authentication Wrap-UpDemos

Page 4: ESPC15 - Introduction to AngularJS in an Office 365 context

What is AngularJS

Page 5: ESPC15 - Introduction to AngularJS in an Office 365 context

What is AngularJS ?Superheroic

JavaScript MVW framework

Started in 2009Developed by Google

Used by Netflix, Youtube, Vevo,

MSNBC, …Angular 2.0 coming

in 2015A game changer in web development

Page 6: ESPC15 - Introduction to AngularJS in an Office 365 context

Why AngularJS ?Getting closer to

client-side development

Living on the edgeStart thinking like a web developer, not

like a SharePoint developer

Building applications faster, with less

code

It’s currently the hottest development

framework

Because everyone is heading towards it,

even Microsoft

Page 7: ESPC15 - Introduction to AngularJS in an Office 365 context

AngularJS is very… trendy

Page 8: ESPC15 - Introduction to AngularJS in an Office 365 context

Key concepts

Architecture patterns 2-way data-bindingEnhanced HTML

templating

Routing engine Unit testingDependency injection

Page 9: ESPC15 - Introduction to AngularJS in an Office 365 context

SharePoint Integration

Page 10: ESPC15 - Introduction to AngularJS in an Office 365 context

Integrating AngularJS in a SharePoint ContextMultiple artifacts can

act as AngularJS apps

Runs in the context of the user

Multiple data access layers can be

targeted

Available with SharePoint 2007,

2010, 2013, Online…

Can be used in a modern web development

workflow

Rapid development and quick feedbacks

Page 11: ESPC15 - Introduction to AngularJS in an Office 365 context

Demos

Page 12: ESPC15 - Introduction to AngularJS in an Office 365 context

Office 365 Unified API

Page 13: ESPC15 - Introduction to AngularJS in an Office 365 context

What is the Office 365 Unified API ?Single API to

consume your Office 365 data

Exposed through the Office Graph

Announced at //build 2015

Currently available in preview through

REST and SDKsSupport of CORS (!!)In preview

Page 14: ESPC15 - Introduction to AngularJS in an Office 365 context

Hands-on the Office 365 Unified APIGraph Explorergraphexplorer2

.azurewebsites.net

Allows to run queries against your own

tenant and explore the data with OData

queries

Page 15: ESPC15 - Introduction to AngularJS in an Office 365 context

Azure AD Authentication

Page 16: ESPC15 - Introduction to AngularJS in an Office 365 context

What is the Office 365 Unified API ?

OAuth 2.0 Secured access scopes

Leaving the authentication

process to Microsoft

Supports MFA & federated

authenticationClient credentials

grant flowPerpetual

connections with refresh tokens

Page 17: ESPC15 - Introduction to AngularJS in an Office 365 context

What is Azure AD Grant Flow ?

Azure AD

Client Application Office 365 API

1

2

3

4

Token

Resources

Token

Page 18: ESPC15 - Introduction to AngularJS in an Office 365 context

How do I integrate Azure AD ?

Integrate on a single or multiple tenants

Available for every major platform

Use the Azure ADAL libraries

Let the authentication flow

do the job, stop coding login screens

It just worksCan be integrated with the Identity

Model of .NET

Page 19: ESPC15 - Introduction to AngularJS in an Office 365 context

Demos

Page 20: ESPC15 - Introduction to AngularJS in an Office 365 context

Wrap-Up

Page 21: ESPC15 - Introduction to AngularJS in an Office 365 context

Wrap-UpAngularJS enables

you to write Single-Page Applications integrated with

Office 365 & SharePoint

Authentication is possible thanks to

Azure AD Authentication

Library

All the Office 365 API are being unified

through the Office Graph

AngularJS interceptors can

integrate the access token with every API

call

Stop worrying about authentication and

security, start delivering business

value

Office 365 is the most strategic

developer surface for Microsoft

Page 22: ESPC15 - Introduction to AngularJS in an Office 365 context

References

dev.office.com graphexplorer2.azurewebsites.net

apisandbox.msdn.com

slevert.me/espc15-blog

slevert.me/espc15-slides

slevert.me/espc15-office-hub

Page 23: ESPC15 - Introduction to AngularJS in an Office 365 context

Questions ?

Page 24: ESPC15 - Introduction to AngularJS in an Office 365 context