collab365 - angularjs & office 365 unified api : a match made in heaven!

24
WWW.COLLAB365.EVENTS WWW.COLLAB365.EVENTS AngularJS and the Office 365 APIs : A match made in heaven ! Sébastien Levert, Office 365 MVP Negotium Technologies

Upload: sebastien-levert

Post on 16-Feb-2017

708 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Collab365 - AngularJS & Office 365 Unified API : A match made in heaven!

WWW.COLLAB365.EVENTSWWW.COLLAB365.EVENTS

AngularJS and the Office 365 APIs : A match made in heaven !

Sébastien Levert, Office 365 MVPNegotium Technologies

Page 2: Collab365 - AngularJS & Office 365 Unified API : A match made in heaven!

WWW.COLLAB365.EVENTS

Who’s Sébastien Levert ?!

Montreal, Canada negotium.com MVP Office365

Web Developer @sebastienlevert pimpthecloud.com

Page 3: Collab365 - AngularJS & Office 365 Unified API : A match made in heaven!

WWW.COLLAB365.EVENTS

AngularJS

Agenda

Azure AD AuthenticationOffice 365 API

Code Wrap-UpDemos

Page 4: Collab365 - AngularJS & Office 365 Unified API : A match made in heaven!

What is AngularJS

Page 5: Collab365 - AngularJS & Office 365 Unified API : A match made in heaven!

WWW.COLLAB365.EVENTS

Superheroic JavaScript MVW

framework

What is AngularJS ?

Started in 2009Developed by Google

Used by Netflix, Youtube, Vevo,

MSNBC, …Angular 2.0 coming

in 2015A game changer in web development

Page 6: Collab365 - AngularJS & Office 365 Unified API : A match made in heaven!

WWW.COLLAB365.EVENTS

Getting closer to client-side

development

Why AngularJS ?

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: Collab365 - AngularJS & Office 365 Unified API : A match made in heaven!

WWW.COLLAB365.EVENTS

AngularJS is very… trendy

Page 8: Collab365 - AngularJS & Office 365 Unified API : A match made in heaven!

WWW.COLLAB365.EVENTS

Architecture patterns

Key concepts

2-way data-bindingEnhancing HTML templating

Routing engine Unit testingDependency injection

Page 9: Collab365 - AngularJS & Office 365 Unified API : A match made in heaven!

Office 365 APIs

Page 10: Collab365 - AngularJS & Office 365 Unified API : A match made in heaven!

WWW.COLLAB365.EVENTS

Sets of API to consume your Office

365 data

What are the Office 365 APIs ?Consistent patterns to connect to Office

365

Released to First Release tenants in

October 2014

Available through REST, .NET SDK, native SDK (iOS,

Android, Windows Phone)

OData servicesOpen platform is key

Page 11: Collab365 - AngularJS & Office 365 Unified API : A match made in heaven!

WWW.COLLAB365.EVENTS

Sets of API to consume your Office

365 data

Hands-on the Office 365 APIs ?

Available through REST, .NET SDK, native SDK (iOS,

Android, Windows Phone)

Page 12: Collab365 - AngularJS & Office 365 Unified API : A match made in heaven!

Office 365 Unified API

Page 13: Collab365 - AngularJS & Office 365 Unified API : A match made in heaven!

WWW.COLLAB365.EVENTS

Single API to consume your Office

365 data

What is the Office 365 Unified API ?

Exposed through the Office Graph

Announced at //build 2015

Currently available in preview through

REST and SDKsSupport of CORS (!!)In preview

Page 14: Collab365 - AngularJS & Office 365 Unified API : A match made in heaven!

WWW.COLLAB365.EVENTS

Sets of API to consume your Office

365 data

Hands-on the Office 365 Unified API

Available through REST, .NET SDK, native SDK (iOS,

Android, Windows Phone)

Page 15: Collab365 - AngularJS & Office 365 Unified API : A match made in heaven!

Azure AD Authentication

Page 16: Collab365 - AngularJS & Office 365 Unified API : A match made in heaven!

WWW.COLLAB365.EVENTS

OAuth 2.0

What is Azure AD AuthenticationSecured access

scopesLeaving the

authentication process to Microsoft

Supports MFA & federated

authenticationClient credentials

grant flowPerpetual

connections with refresh tokens

Page 17: Collab365 - AngularJS & Office 365 Unified API : A match made in heaven!

WWW.COLLAB365.EVENTS

What is Azure AD Grant Flow

Azure AD

Client Application Office 365 API

1

2

3

4

Token

Resources

Token

Page 18: Collab365 - AngularJS & Office 365 Unified API : A match made in heaven!

WWW.COLLAB365.EVENTS

Integrate on a single or multiple tenants

How do I integrate Azure AD ?Available for every

major platformUse 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: Collab365 - AngularJS & Office 365 Unified API : A match made in heaven!

Demos

Page 20: Collab365 - AngularJS & Office 365 Unified API : A match made in heaven!

Wrap-Up

Page 21: Collab365 - AngularJS & Office 365 Unified API : A match made in heaven!

WWW.COLLAB365.EVENTS

AngularJS enables you to write Single-Page Applications integrated with

Office 365

Wrap-UpAuthentication 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: Collab365 - AngularJS & Office 365 Unified API : A match made in heaven!

WWW.COLLAB365.EVENTS

dev.office.com

Referencesgraphexplorer2

.azurewebsites.netapisandbox.msdn.co

m

slevert.me/1G8N2Gt slevert.me/1FfTlY3slevert.me/office-hub

Page 23: Collab365 - AngularJS & Office 365 Unified API : A match made in heaven!

WWW.COLLAB365.EVENTS

Catch me!

Montreal, Canada negotium.com MVP Office365

Web Developer @sebastienlevert pimpthecloud.com

Page 24: Collab365 - AngularJS & Office 365 Unified API : A match made in heaven!

Stay tuned for more great sessions …

WWW.COLLAB365.EVENTS

Thanks for watching !