using azure active directory authentication with your sharepoint add-ins for office 365

17
Using Azure Active Directory Authentication with your SharePoint Add- Ins for Office 365

Upload: dina-craig

Post on 20-Jan-2018

234 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Using Azure Active Directory Authentication with your SharePoint Add-Ins for Office 365

Using Azure Active Directory Authentication with your SharePoint Add-Ins for Office 365

Page 2: Using Azure Active Directory Authentication with your SharePoint Add-Ins for Office 365

• Product Owner Transformation Tooling• Both Dutch and Swedish nationality• 20+ years of industry experience• Living in Stockholm, Sweden• MCSM, MCM, MVP, MCSE, MCSD, MCSA, MCPD,

MCITP, MCTS• Office Developer PnP Core Team Member

[email protected]• @erwinvanhunen• se.linkedin.com/in/erwinvanhunen

@ ME

Page 3: Using Azure Active Directory Authentication with your SharePoint Add-Ins for Office 365

Why?

Page 4: Using Azure Active Directory Authentication with your SharePoint Add-Ins for Office 365

Why use Active Directory Authentication?

Centralize authorization Off-load the decision making process to admins (they will like that )

Future proof your code We are heading more and more towards Azure AD when it comes to AuthN and AuthZ

Page 5: Using Azure Active Directory Authentication with your SharePoint Add-Ins for Office 365

PnP Core?

Page 6: Using Azure Active Directory Authentication with your SharePoint Add-Ins for Office 365

PnP Core?

Open Source Library Helper classes Extensions methods

Increases developer productivity

Page 7: Using Azure Active Directory Authentication with your SharePoint Add-Ins for Office 365

aka.ms/OfficeDevPnP

https://github.com/OfficeDev/PnPhttps://github.com/OfficeDev/PnP-Sites-Corehttps://github.com/OfficeDev/PnP-PowerShellhttps://github.com/OfficeDev/PnP-Toolshttps://github.com/OfficeDev/PnP-Guidancehttps://github.com/OfficeDev/PnP-Transformationhttps://github.com/OfficeDev/PnP-Toolshttps://github.com/OfficeDev/PnP-OfficeAddInshttps://github.com/OfficeDev/PnP-Provisioning-Schema

https://aka.ms/OfficeDevPnPVideos

https://aka.ms/OfficeDevPnPMSDN

https://aka.ms/OfficeDevPnPYammer

https://aka.ms/OfficeDevPnPPartnerPack

@OfficeDevPnP

https://aka.ms/OfficeDevPnPCall

Page 8: Using Azure Active Directory Authentication with your SharePoint Add-Ins for Office 365

Getting started

Page 9: Using Azure Active Directory Authentication with your SharePoint Add-Ins for Office 365

Get your app ready

Decide on the type of auth Configure your AzureAD Optionally create certificate

Install Nuget Packages OfficeDevPnP Microsoft.IdentityModel.Clients.ActiveDirectory

Page 10: Using Azure Active Directory Authentication with your SharePoint Add-Ins for Office 365

The easiest

Open the Azure AD management portal Add an application your organization is developing

Copy clientid and redirect url

Page 11: Using Azure Active Directory Authentication with your SharePoint Add-Ins for Office 365

Demo

Page 12: Using Azure Active Directory Authentication with your SharePoint Add-Ins for Office 365

A bit more work…

Open the Azure AD management portal Create a certificate Add an application your organization is developing

Modify the manifest Copy clientid and keep PFX file at hand

Page 13: Using Azure Active Directory Authentication with your SharePoint Add-Ins for Office 365

Demo

Page 14: Using Azure Active Directory Authentication with your SharePoint Add-Ins for Office 365

Comparing

Simple to setupInitial user interaction requiredRequires token cache to smoothen experience

A bit more complex to setupCertificate expirationNo need for token cacheSmoother end-user experience

App Only with User Auth

App Only with Certificate

Page 15: Using Azure Active Directory Authentication with your SharePoint Add-Ins for Office 365

More infoBlogs:http://www.erwinmcm.com/azure-active-directory-authentication-with-officedev-pnp-powershell/http://www.erwinmcm.com/azure-active-directory-app-only-authentication-with-officedev-pnp-powershell/http://blogs.msdn.com/b/vesku/archive/2016/02/15/connecting-to-sharepoint-online-from-console-application-with-adal-and-pnp-core-component.aspx

Videohttps://channel9.msdn.com/blogs/OfficeDevPnP/Connecting-to-SharePoint-Online-from-console-application-with-Azure-AD-and-PnP-Core-Component

Page 16: Using Azure Active Directory Authentication with your SharePoint Add-Ins for Office 365

Questions?

Page 17: Using Azure Active Directory Authentication with your SharePoint Add-Ins for Office 365

Thank you!