mvpdays montreal 2016 - angularjs with the microsoft graph

36
http://dev.office.com/ Introduction to AngularJS with the Microsoft Graph Sébastien Levert, Office Servers & Services MVP @ Negotium Technologies

Upload: sebastien-levert

Post on 16-Feb-2017

339 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

Introduction to AngularJS with the Microsoft GraphSébastien Levert, Office Servers & Services MVP @ Negotium Technologies

Page 2: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

Who’s Sébastien Levert

Montreal, Canada negotium.comOffice Servers &

Services MVP

Web Developer @sebastienlevertSebastienlevert.co

m

Page 3: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

"The most strategic developer surface area for us is Office 365.“ —Satya Nadella

Page 4: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

OpportunityOver 4

trillion emails sent with O365

100+ million downloads of mobile apps

850 million

meetings are created a month

2–3 hours/day

spent in Office add-ins1.2

billion+ users

470+ PB

of storage

Page 5: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

AgendaAngularJSMicrosoft GraphAzure ADDemosResources

Page 6: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

AngularJS1

Page 7: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

Superheroic JavaScript MVW frameworkDeveloped by GoogleStarted in 2009Used by Netflix, Youtube, Vevo, MSNBC, …, You ?A game changer in web developmentAngular 2.0 coming in 2015 2016

What is AngularJS ?

Page 8: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

Getting closer to client-side developmentStart thinking like a web developer, not like a SharePoint developerLiving on the edgeBuilding applications faster, with less codeBecause everyone is heading towards it

Why AngularJS ?

Page 9: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

AngularJS is very… Trendy!

Page 10: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

Architecture patternEnhanced HTML templating2-way data-bindingRouting engineDependency injectionUnit testing

Key concepts

Page 11: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

Microsoft Graph2

Page 12: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

Developer vision

HTML

DATAUSERS

Page 13: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

Building integration with Office 365

Page 14: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

Microsoft Graph API

https://graph.microsoft.com/

Your App

USERS FILES MAIL CALENDARGROUPS

Insights and relationships from Office Graph

TASKS

Page 15: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

Single resource that proxies multiple Microsoft servicesAllows for easy traversal of objects and relationshipsSimplifies token acquisition and managementEliminates the need to traditional discovery (using “me” and “myorganization”)

Microsoft Graph, gateway to Office 365

Page 16: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

Direct API endpoints for all the Office 365 Services may also be invoked

Outlook, OneDrive, OneNote, etc.Direct endpoints have new functionality before it is exposed via the Graph API

Examples:Outlook web hooksTime zone on calendar

Office 365 direct API Endpoints

Page 17: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

Office 365 connected apps

Page 18: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

Demo of the Graph Explorerhttps://graphexplorer2.azurewebsites.net

Page 19: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

Azure AD Authentication3

Page 20: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

• Sign users in using OpenID Connect Azure AD and Office 365

services Supports MFA and federated

user sign-in

• Device apps, web sites, SPAs, and service apps

• Pin apps to Office 365 app launcher from My apps

Single authentication flow for Office 365

Page 21: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

Common consent• Single auth flow for

accessing all O365 services

• Admin and end-user consent

• Secure protocol OpenID Connect and OAuth 2.0 No capturing user credentials Fine-grained access scopes Long-term access through refresh

tokens

Page 22: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

Azure AD onlySeparate auth flow supports Azure AD accounts onlyAzure AD and Microsoft Accounts (Preview)Converged auth flow supports Azure AD accounts and Microsoft accounts (LiveID - hotmail.com, etc.)

Authentication Options

Page 23: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

Many apps want to sign users in from both Microsoft account and Azure ADNow in preview:Single endpoint, OpenID Connect and OAuth 2.0Single SDKSingle end user sign in experienceSingle app registration experience

Works with Microsoft Graph Single API endpoint, business and consumer data

Microsoft Account + Azure AD

Page 24: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

Integrating with Office 365

https://graph.microsoft.com/

Your App

USERS FILES MAIL CALENDARGROUPS

Insights and relationships from Office Graph

TASKS

Page 25: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

Demo of an Azure AD Applicationhttps://manage.windowsazure.com

Page 26: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

Integration of AngularJS with the Microsoft Graph4

Page 27: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

Scaffolding of AngularJS applicationAutomatic authenticationSecured routesInjection of tokens in HTTP calls

What do we need to integrate?

Page 28: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

Demo of an AngularJS, from start to finish

Page 29: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

Demo of OfficeHub

Page 30: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

Ressources5

Page 31: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

dev.Office.comhttp://dev.office.comOpportunityGetting startedTransformResourcesShowcaseDocumentation

4 Resources

Page 32: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

dev.Office.comhttp://blogs.office.comOffice 365 newsDev announcementsEventsGarage series videosWeekly podcast

4 Resources

Page 33: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

dev.Office.comhttp://www.office.com/roadmapMonthly updatesDeveloper featuresAssociated blog posts

4 Resources

Page 34: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

http://dev.office.com/devprogram

Developer Program launch

Email Newsletters

Free Developer Subscriptio

n

1 YEAR FREE

Free Training

Free Tools Webinars

4 Resources

Page 35: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

Office 365 Networkhttps://www.yammer.com/itpronetwork

@OfficeDev TwitterStartStart

Podcastshttp://dev.office.com/podcasts

UserVoice

http://officespdev.uservoice.com/

Stack overflow

[ms-office]

Channel 9 Dev Showhttp://aka.ms/O365DevShow Snack Demos

http://aka.ms/o365DevSnackDemos

Page 36: MVPDays Montreal 2016 - AngularJS with the Microsoft Graph

http://dev.office.com/

Questions ?