64

101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Embed Size (px)

Citation preview

Page 1: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338
Page 2: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Page 3: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338
Page 4: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

For cloud authentication, Azure Active Directory has you covered

Page 5: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

OverviewProtocol

s

Use cases

OWIN

ADALWIF

Access Panel

SaaS

Page 6: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

DirSync

AADSync

AD Connec

tMFA

AAD Proxy

Won’t be covering

Page 7: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

1 TrillionAzure AD authentications since the release of the service

50 MOffice 365 users active every month

>1 Billion authentications every day on Azure AD

More than

500 M

objects hosted on Azure Active Directory

Azure AD manages identity data for

>5 M organizations

86% of Fortune 500 companies on Microsoft Cloud (Azure, O365, CRM Online and PowerBI)

Azure AD by the Numbers

Every Office 365 and Microsoft Azure customeruses Azure Active directory

Page 8: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

The Protocols

Page 9: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Protocols

SAML-P 2.0

WS Federation

OAuth2

OpenID Connect

Page 10: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338
Page 11: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338
Page 12: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338
Page 13: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

WS Federation

http://blogs.technet.com/b/askpfeplat/

Page 14: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

WS Federation

http://blogs.technet.com/b/askpfeplat/

Page 15: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

WS Federation

http://blogs.technet.com/b/askpfeplat/

Page 16: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

WS Federation

http://blogs.technet.com/b/askpfeplat/

Page 17: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

WS Federation

http://blogs.technet.com/b/askpfeplat/

Page 18: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

SAML token attributes

Page 19: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

SAML token attributes

Page 20: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

SAML-P

http://blogs.technet.com/b/askpfeplat/

Page 21: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

SAML-P

http://blogs.technet.com/b/askpfeplat/

Page 22: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

SAML-P

http://blogs.technet.com/b/askpfeplat/

Page 23: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

SAML-P

http://blogs.technet.com/b/askpfeplat/

Page 24: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

SAML-P

http://blogs.technet.com/b/askpfeplat/

Page 25: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

OAuth2

http://blogs.technet.com/b/askpfeplat/

Page 26: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

OAuth2

http://blogs.technet.com/b/askpfeplat/

Page 27: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

OAuth2

http://blogs.technet.com/b/askpfeplat/

Page 28: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

OAuth2

http://blogs.technet.com/b/askpfeplat/

Page 29: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

OAuth2

http://blogs.technet.com/b/askpfeplat/

Page 30: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Manipulate AAD using API

AAD Use token in REST call to

endpoint

Token issue

d

Use OAuth endpoint to get token

Page 31: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

OAuth2 token

http://blogs.technet.com/b/askpfeplat/

Access token

ID token (OpenID Connect)

Refresh token

Page 32: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Use cases

Page 33: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Authentication scenarios

Clients using wide variety of

devices/languages/platforms

Server applications using wide variety of

platforms/languages

Browser

Native app

Server app

Web applicatio

n

Web API

Web API

Web API

js

video.ch9.ms/teched/2012/na/SIA209.pptx

Page 34: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Authentication scenarios

Browser

Native app

Server app

Web applicatio

n

Web API

Web API

Web API

Standard-based, http-based protocols for maximum platform reach

WS-Fed, SAML 2.0, OpenID

Connect

OAuth 2.0

OAuth 2.0

OAuth 2.0

OAuth 2.0

OAuth 2.0

js

video.ch9.ms/teched/2012/na/SIA209.pptx

Page 35: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

VS “Change Authentication”

Page 36: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Change authentication

Page 37: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Change authentication

Page 38: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

OWIN(All)

WIF(WS Federation)

ADAL(OpenID Connect /

OAuth)

Wrappers around the protocols

Page 39: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Demo - Lap around AAD Applications

Page 40: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Demo - OWIN – OpenID Connect / WS Federation

Page 41: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Demo – WIF - WS Federation

Page 42: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Open Web Interface for .NET (OWIN) (Identity) vs Windows Identity Foundation (WIF)

Page 43: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

OWIN ID Supported with new protocols being added

WS Fed / OpenID Connect / OAuth2 / SAML-P (Community)

Invoked via code

Easy to do with VS 2013/15

JWT token

Microsoft.OWIN

WIFSupported

WS Fed / SAML-P CTP (deprecated)

ASP.NET pipeline

Have to “retro-fit” from template or use VS 2010/12

XML token

System.IdentityModel

Page 44: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Active Directory Authentication Library (ADAL)

Page 45: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

ADAL Mission statement

The Active Directory Authentication Library (ADAL) is a library meant to help developers to take advantage of

Azure Active Directory for enabling client applications to access protected resources

Page 46: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

SDK available on multiple platforms

.NET, iOS, JavaScript,

Android, Node.JS, Java, Windows Store, Windows

Phone etc.

Caching and automatic refresh

token

Asynchronous support

Basis of Graph API and Azure

Management Library

Now open source

Page 47: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Active Directory Authentication Library

string clientId = "[Enter client ID as obtained from Azure Portal]";string authority = "https://login.windows.net/[your tenant name]";string myURI = "[Enter App ID URI of your service]";

AuthenticationContext authContext = new AuthenticationContext(authority);AuthenticationResult result = await authContext.AcquireTokenAsync(myURI, clientId);

Page 48: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Demo – Graph API via ADAL with Groups

Page 49: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Social

Page 50: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

ACS

Page 51: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

IaaS

Page 52: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Azure AD as an IDP

Page 53: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

AAD as an IDP

Can federate with 3rd party application not in Gallery via the Access Panel / Custom /

SAML-P

Can use user name and password via the Access

Panel e.g. Twitter

Can federate with 3rd party application in Gallery e.g.

SalesForce

Can federate with e.g. ADFS via metadata

Page 54: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Demo – Lap around AAD external applications and the Access Panel

Page 55: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Azure AD Passport.js

Page 56: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

passport-azure-ad is a collection of Passport strategies to help you integrate with Azure Active Directory

Includes OpenID Connect, WS-Federation, and SAML-P authentication and authorization

Lets you integrate your Node app with Microsoft Azure AD so you can use web single sign-on (WebSSO), Endpoint Protection with OAuth, and JWT token issuance and validation

Page 57: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Windows 10

Page 58: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

https://identity-test.datacomcc.com/Account/SignIn?ReturnUrl=/issue/wsfed?wa=wsignin1.0&wtrealm=http://dslfimad.dslfim.local/adfs/services/trust&wctx=00cacd9f-0aae-434a-b057-f1bfc0d5f1f3&wct=2014-08-12T20:31:58Z

Page 59: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

For cloud authentication, Azure Active Directory has you covered

Page 60: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Resources

Azure blog - http://azure.microsoft.com/blog/

Ask Premier Field Engineering - http://blogs.technet.com/b/askpfeplat/

Active Directory Team blog - http://blogs.technet.com/b/ad/

Active Directory Passport plug-in - https://github.com/AzureAD/passport-azure-ad/

Microsoft Azure Active Directory Samples and Documentation - https://github.com/AzureADSamples/

Cloud Identity Infographic - http://azure.microsoft.com/en-us/documentation/infographics/cloud-identity-and-access/

Graph Explorer - https://graphexplorer.cloudapp.net/

Page 61: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Related Ignite NZ SessionsO365 and Azure Active Directory Premium M315 - Wed 10:40 AM Ballroom 2

Identity Management in O365M362 - Thu 4:30 PM New Zealand 1

Find me later at… Closing drinks Fri 3:00-4:30pm1

2 Enabling AAD to Embrace Windows 10M326 - Wed 3:10 PM New Zealand 1

3

Page 62: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Resources

TechNet & MSDN FlashSubscribe to our fortnightly newsletter

http://aka.ms/technetnz http://aka.ms/msdnnz

http://aka.ms/ch9nz

Microsoft Virtual AcademyFree Online Learning

http://aka.ms/mva

Sessions on Demand

Page 63: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

Complete your session evaluation now and be in to win!

Page 64: 101 ways to authenticate with Azure Active Directory Rory Braybrook M338

© 2015 Microsoft Corporation. All rights reserved.Microsoft, Windows and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or

other countries.MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.