identity and o365 on azure

37
Identity (Azure+O365) Mostafa Elzoghbi Sr. Technical Evangelist @ Microsoft @MostafaElzoghbi

Upload: mostafa-elzoghbi

Post on 16-Apr-2017

1.532 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Identity and o365 on Azure

Identity (Azure+O365)Mostafa Elzoghbi

Sr. Technical Evangelist @ Microsoft@MostafaElzoghbi

Page 2: Identity and o365 on Azure

AgendaWhy our cloudAuthentication

101, getting things done

How to use Office 365 and Azure on your app

(+ with access control)

Page 3: Identity and o365 on Azure

A story about two organizations...

Page 5: Identity and o365 on Azure

A better cloud

From privateor hybrid and IaaSto full PaaS/SaaS

Page 6: Identity and o365 on Azure

Azure + o365

• Fully flexible: Private, on premises, hybrid or cloud

• The power of o365: Leverage Office, SharePoint and Exchange Online as your application building blocks

• Identity is the glue that makes all of that possible

Page 7: Identity and o365 on Azure

Your identity goes with you

PCs and devices

3rd party clouds/hosting

Azure AD

You

Page 8: Identity and o365 on Azure

Enabling modern authentication protocolsUsing great building blocks on your apps

How do we make all of that work?

Page 9: Identity and o365 on Azure

Enabling modern authentication

protocols

Page 10: Identity and o365 on Azure

Modern Authentication ProtocolsBrowser

Native app

Server app

Web applicatio

n

Web service

API

OAuth 2.0

OAuth 2.0

WS-Fed, SAML 2.0, OpenID

Connect

OAuth 2.0

Standard, http-based protocols for maximum platform reach

Page 11: Identity and o365 on Azure

Claims about the user

Object ID b3809430-6c28-4e43-870d-fa7d38636dcd

Claim Type Claim ValueUsage

Tenant ID 81aabdd2-3682-48fd-9efa-2cb2fcea8557

Security

Display

Subject

Name

First Name

Last Name

[email protected]

Frank

Miller

m70fSk8OdeYYyCYY6C3922lmZMz9JKCGR0P1

Page 12: Identity and o365 on Azure

Authentication libraries

Good news: You don’t need to know these things in details

Libraries such as Azure Active Directory Authentication Library do all the plumbing for you

Page 13: Identity and o365 on Azure

Enabling great building blocks

Page 14: Identity and o365 on Azure

Building blocks: Azure Active Directory Provides identity and access management for

the cloud Users, groups, applications and permissions

Page 15: Identity and o365 on Azure

Building blocks: Graph API REST API for Azure Active Directory Allows programmatic access to users, groups,

applications and permissions

Example: Nick creates a PowerShell script that provisions the required permissions for his application to an Azure tenant

Page 16: Identity and o365 on Azure

The best Office productivity tools, available online Includes REST APIs you can use from your

applications Seamless integration with Azure Active Directory

Example: An application can automatically scan e-mails from Exchange and generate a Word document with a summary, saving it on SharePoint Online

Building blocks: Office 365

Page 17: Identity and o365 on Azure

So how do we build it?

Page 18: Identity and o365 on Azure

For a typical Web Application

Page 19: Identity and o365 on Azure

Step 1: Visual Studio, file new project

Page 20: Identity and o365 on Azure

Step 2: Click “Change Authentication”

Page 21: Identity and o365 on Azure

Step 3: Configure organizational account

Page 22: Identity and o365 on Azure

What happens then:

Visual Studio configures the application permission settings for you on Azure Active Directory!

Visual Studio App permissions Azure AD

Page 23: Identity and o365 on Azure

More complex scenario:Mobile app -> mobile service -> O365

Page 24: Identity and o365 on Azure

Nick (the developer) registers two applications:• A mobile web service • A mobile client

Step 1: Register your apps on Azure AD

Page 25: Identity and o365 on Azure

AD needs to know which web service the “MobileServices” app is actually referring to.

Step 2: Map the AD app to the actual web service

Page 26: Identity and o365 on Azure

The client app must be allowed to call the web service. It is also allowed to logon to Azure Active Directory (by default)

Step 3: Set permissions

Page 27: Identity and o365 on Azure

And the web service is allowed to call SharePoint online and Graph API

Step 3: Set permissions

Page 28: Identity and o365 on Azure

Nick can make his app multi tenant, so James from Contoso Inc. could use it in his organization if the permissions were set correctly

Step 4 (optional): Making an app multi tenant

Woodgrove

Contoso

Page 29: Identity and o365 on Azure

Step 5: User logs on to the appA user logs on to the app for the first time. Consent is presented. This is basically saying:

“This is what the app will do, are you ok with it?”

Page 30: Identity and o365 on Azure

Step 5: User logs on to the appIf the user is the global admin for the Azure tenant, the consent asks if the admin wants to grant permissions for the app across all users of that organization.

admin

Page 31: Identity and o365 on Azure

Go to app access panel:http://myapps.microsoft.com/Where users see apps they have access toIncludes apps they’ve consented toUsers can revoke consented apps

Step 6 (optional): What if I change my mind later?

Page 32: Identity and o365 on Azure

Demo: Azure AD (AAD) and Application

Registration

Page 33: Identity and o365 on Azure

Application Walkthrough’s https://github.com/AzureADSamples

Some examples: WebApp-WebAPI-OAuth2-UserIdentity-DotNet WebApp-WebAPI-OpenIDConnect-DotNet WebApp-GraphAPI-PHP WebAPI-Nodejs NativeClient-Xamarin-iOS NativeClient-iOS

Page 34: Identity and o365 on Azure

Labs on Graph APIhttps://github.com/AzureADSamples?query=Graph

WebApp-GraphAPI-DotNetWebApp-GraphAPI-PHPWebApp-GraphAPI-JavaConsoleApp-GraphAPI-DiffQuery-DotNetWindowsAzureAD-GraphAPI-Sample-PHPWindowsAzureAD-GraphAPI-Sample-OrgChart

Page 35: Identity and o365 on Azure

Q&A Got Questions ?

Post your questions to: Stack Overflow Forums MSDN Forums

Twitter: @MostafaElzoghbi

Page 36: Identity and o365 on Azure

Get startedVisit azure.microsoft.com

Page 37: Identity and o365 on Azure

© 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.