Mastering Office 365 Development - Toni Pohl, atwork

36
Mastering Office 365 Development TONI POHL, ATWORK

description

Cloud First! In this session we will show you how you can extend your Office 365 solutions with cool Development. We will go through identity management as well as showing you how you can use REST and build in some cool Office 365 functionality in your own solutions. We will also use the Office 365 API to develop our own Windows 8.1 app.

Transcript of Mastering Office 365 Development - Toni Pohl, atwork

Page 1: Mastering Office 365 Development - Toni Pohl, atwork

Mastering Office 365 Development

TONI POHL, ATWORK

Page 2: Mastering Office 365 Development - Toni Pohl, atwork
Page 3: Mastering Office 365 Development - Toni Pohl, atwork

Mastering Office 365 DevelopmentCloud First! In this session we will show you how you can extend your Office 365 solutions with Development. We will go through identity management as well as showing you how you can use client libraries and build in some cool Office 365 functionality in your own solutions. We will also use the Office 365 API to develop our own Windows 8.1 app.

Page 4: Mastering Office 365 Development - Toni Pohl, atwork

Toni Pohl@atwork

Windows Platform Dev. MVP

Page 5: Mastering Office 365 Development - Toni Pohl, atwork

Agenda

Working with Identities in AADOffice GraphOffice 365 API

Page 6: Mastering Office 365 Development - Toni Pohl, atwork

…use your desired service(s)

Exchange

SharePoin

tLync

Yamme

r

API´s

Tools

Scrip

ting

Azure

ERP

Hybrid

IaaS

PaaS

Page 7: Mastering Office 365 Development - Toni Pohl, atwork

TIPS

Page 8: Mastering Office 365 Development - Toni Pohl, atwork

Office 365 General Dev. Tips1. Create a 30-days Office 365 tenant [and remind your

pwds…]http://office.microsoft.com/en-001/business/compare-all-office-365-for-business-plans-FX104051403.aspx

2. Create a dev SPO site [and an app site]3. Use multiple browsers [and the private mode]4. Have an Azure subscription [and connect your O365 tenant]5. Check for the latest code samples [outdated samples in

MSDN]6. Remember: you work with the cloud services

[throtteling, version, …]7. Use GraphExplorer for checking AAD data8. Use PowerShell Scripting

Page 9: Mastering Office 365 Development - Toni Pohl, atwork

Open an Office 365 trial with partner

Page 10: Mastering Office 365 Development - Toni Pohl, atwork

WORKING WITH IDENTITIES IN AAD

Page 11: Mastering Office 365 Development - Toni Pohl, atwork

Typical Scenarios

Office 365AADSaaSPaaSIaaS

AzureLANADERP…

DirSync orADFS

Page 12: Mastering Office 365 Development - Toni Pohl, atwork

How the Authentication works with AAD

Source: http://msdn.microsoft.com/library/azure/dn151790.aspx

OAuth:Client AppClient Secret[Redirect URI]->Token [code](WSFed* or Open ID Connect [OWIN])->Request against API Endpoint (ADAL)->Access Token(JWT, serializable)->Actions: Request withBearer in HTTP Header

Page 13: Mastering Office 365 Development - Toni Pohl, atwork

AAD IDENTITIES DEMO

Page 14: Mastering Office 365 Development - Toni Pohl, atwork

GRAPH API DEMO

Page 15: Mastering Office 365 Development - Toni Pohl, atwork
Page 16: Mastering Office 365 Development - Toni Pohl, atwork
Page 17: Mastering Office 365 Development - Toni Pohl, atwork

Add an existing AAD to Azure portal

Page 18: Mastering Office 365 Development - Toni Pohl, atwork

The result:

Page 19: Mastering Office 365 Development - Toni Pohl, atwork

Permissions & more

Page 20: Mastering Office 365 Development - Toni Pohl, atwork

OFFICE GRAPH (PREVIEW)

Page 21: Mastering Office 365 Development - Toni Pohl, atwork
Page 22: Mastering Office 365 Development - Toni Pohl, atwork

Office GraphImportant: the current version of the Office Graph API is a pre-release. It is offered as-is and currently Microsoft offers no support for solutions leveraging it. Also should you choose to invest in a solution using Office Graph keep in mind that you will have to update your solution once the Office Graph API is officially released.

Page 23: Mastering Office 365 Development - Toni Pohl, atwork

OFFICE 365 API (PREVIEW)

Page 24: Mastering Office 365 Development - Toni Pohl, atwork

Get the Office 365 API Tools

https://visualstudiogallery.msdn.microsoft.com/7e947621-ef93-4de7-93d3-d796c43ba34f?SRC=VSIDE

Page 25: Mastering Office 365 Development - Toni Pohl, atwork

Office 365 API Preview

Page 26: Mastering Office 365 Development - Toni Pohl, atwork

Office 365 API (Preview)Important: the current version of the Office 365 API is a pre-release. It is offered as-is and currently Microsoft offers no support for solutions leveraging it. Also should you choose to invest in a solution using Office 365 API keep in mind that you will have to update your solution once the Office 365 API is officially released.

Page 27: Mastering Office 365 Development - Toni Pohl, atwork

Office 365 API works with…• .NET Windows Store Apps • .NET Windows Store Universal Apps • Windows Forms Applications • WPF Applications • ASP.NET MVC Web Applications • ASP.NET Web Forms Applications • Xamarin Android and iOS Applications • Multi-device Hybrid Apps • Windows Phone 8.1 Apps (version 1.1.728 owards) https://visualstudiogallery.msdn.microsoft.com/7e947621-ef93-4de7-93d3-d796c43ba34f?SRC=VSIDE

Page 28: Mastering Office 365 Development - Toni Pohl, atwork

OFFICE 365 API (PREVIEW) DEMO

Page 30: Mastering Office 365 Development - Toni Pohl, atwork

RESOURCES

Page 32: Mastering Office 365 Development - Toni Pohl, atwork

Links - 2• Help: Adding Sign-On to Your Web Application Using Azure AD

http://msdn.microsoft.com/library/azure/dn151790.aspx• Office 365 API Tools - Previewhttps://

visualstudiogallery.msdn.microsoft.com/7e947621-ef93-4de7-93d3-d796c43ba34f?SRC=VSIDE

• Developing iOS Apps with Azure and Office 365 APIshttp://blogs.msdn.com/b/richard_dizeregas_blog/archive/2014/10/06/developing-ios-apps-with-azure-and-office-365-apis.aspx

• ADAL for iOShttps://github.com/AzureAD/azure-activedirectory-library-for-objc

• Delve and the Office Graphhttp://blogs.technet.com/b/austria/archive/2014/09/27/delve-und-der-office-graph.aspx

• Office Graph Explorerhttp://blog.atwork.at/post/2014/10/03/Office-365-Office-Graph-Explorer.aspx

Page 33: Mastering Office 365 Development - Toni Pohl, atwork

SUMMARY

Page 34: Mastering Office 365 Development - Toni Pohl, atwork

Summary – Key Take Aways

Use Office 365 for DevelopmentUse Office 365 for Authentication[Check out Office Graph][Use Office 365 API for own projects] Check out the latest libraries & code samplesRemember: you work with the cloud

Page 35: Mastering Office 365 Development - Toni Pohl, atwork

questions?

BLOG.ATWORK.AT

ATWORK

Page 36: Mastering Office 365 Development - Toni Pohl, atwork

thank you.

SHAREPOINT AND PROJECT CONFERENCE ADRIATICS ZAGREB, 10/15/2014 - 10/16/2014