Microsoft Ignite NZ 25-28 October 2016 SKYCITY, Auckland.

Slides:



Advertisements
Similar presentations
Session 1.
Advertisements

Identity & Access Control in the Cloud Name Title Organization.
101 ways to authenticate with Azure Active Directory
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Browser Identity Provider Access Control Application.
Cloud Roadshow. Getting Started with mobile app development with the Office 365 APIs.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Today’s Applications Web API Browser Native app Web API Web API
Cloud Roadshow. Advanced Web Development using Angular with Office 365 APIs.
11 | Managing User Info Jeremy Foster Michael Palermo
A deep dive into Azure AD B2C
4/18/2018 1:15 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
A lap around Azure Active Directory Business to Consumer (B2C)
Azure Active Directory - Business 2 Consumer
S4 Solution Specialist Sales Summit
9/11/ :51 AM Cloud Roadshow © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO.
SaaS Application Deep Dive
The power of common identity across any cloud
Understand Hybrid Identity with Azure and Azure Stack
Information Protection
9/14/2018 4:36 AM The keys to the cloud Use Microsoft identities to sign in and access API from your mobile+web apps Vittorio Bertocci Principal Program.
Microsoft Intune MAM without Device Enrollment
Microsoft Build /20/2018 2:46 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
SharePoint Online Management and Control
Microsoft Virtual Academy
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
Office 365 Development.
Controlling and leveraging the power of the Microsoft Graph
Azure AD Line Of Business Application Integration
Deep Dive into Cloud Identity, Identity Bridging and Cloud Tokens - EWUG.DK - Level Peter Selch Dahl - Sr. IT Architect, Cloud and.
Azure Active Directory
11/14/ :30 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Microsoft Connect /15/2018 3:03 AM
Office 365 Development July 2014.
Microsoft Virtual Academy
Azure AD Domain Services
Deep dive on app data roaming
Microsoft Build /24/2018 2:25 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
Title of Presentation 12/2/2018 3:48 PM
Office 365 Development July 2014.
TechEd /6/2018 8:16 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Introduction to Authentication Authentication සදහා හැදින්වීම
TechEd /7/2018 2:17 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Office 365 Identity Management
Office 365 Identity Management
Microsoft Virtual Academy
Agenda OAuth Concepts Programming OAuth.
TechEd /15/2019 8:08 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Office 365 Development.
Microsoft Build /22/2019 5:32 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
TechEd /22/2019 9:22 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Office 365 Development.
Surviving identity management in a hybrid world
Microsoft Office 4/3/2019 Deep Dive into native Universal App development with the Office 365 APIs Speaker name Title Microsoft Corporation © 2012 Microsoft.
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
One Marketing Template
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
WINDOWS AZURE A LAP AROUND PLATFORM THE Steve Marx
Шитманов Дархан Қаражанұлы Тарих пәнінің
07 | Introduction to Authentication
The complete developer's guide to the SkyDrive API
Title of Presentation 5/24/2019 1:26 PM
Sessions about to start – Get your rig on!
Office 365 Development.
Azure AD Simon May Technical Evangelist.
A Lap Around Windows Azure Active Directory
11/11/2019 1:15 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Presentation transcript:

Microsoft Ignite NZ 25-28 October 2016 SKYCITY, Auckland

Integrating OpenID Connect & OAuth2 with Azure AD and ADFS M337 Rory Braybrook @rbrayb

OpenID Connect and OAuth 2 OpenID Connect and OAuth 2.0 provide modern authentication across the Microsoft stack for both enterprise and mobile

Modern authentication REST SOAP

Modern authentication User consents Admin

Modern authentication

Overview OIDC / OAuth 2.0 Protocols Overview AAD / ADFS Demos Stacks Use cases Demos

4/16/2019 9:20 AM Azure AD / ADFS © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Azure AD and ADFS IDP Claims WS-Fed SAML SAML Token JWT Token OIDC OAuth WS-Fed SAML

Differences between Azure AD and ADFS On premises Claims rules SaaS Applications Sync. to AAD ADFS

Differences between Azure AD and ADFS Cloud No claims rules SaaS Applications Office 365 AAD

Before OAuth App B needs user details from App A App A TechEd 2013 4/16/2019 9:20 AM Before OAuth App B needs user details from App A App A User passes credentials © 2013 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. 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.

4/16/2019 9:20 AM OIDC / OAuth 2.0 © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

RFC 6749 End User Printing service Authenticate Photo sharing service

OIDC and OAuth 2.0 OIDC – User authenticates OAuth 2.0 - User consents

OIDC and OAuth 2.0 OIDC – Verifying a person's identity OAuth 2.0 - Accessing a person's attributes

OIDC specifies how to use OAuth 2.0 to communicate identity data OIDC and OAuth 2.0 OIDC specifies how to use OAuth 2.0 to communicate identity data OAuth 2.0

OIDC and OAuth 2.0 Tokens OIDC – Access token plus signed ID token OAuth – Access token Refresh token

OIDC and OAuth 2.0 endpoints /authorize /token /discovery /userinfo

OIDC and OAuth 2.0 Flows Authorisation Code Grant Implicit Grant Client Credentials Grant Resource Owner Password Credentials Grant Hybrid

Manipulate (A)AD using API TechEd 2013 4/16/2019 9:20 AM Manipulate (A)AD using API Use OAuth endpoint to get token (A)AD Use token in REST call to endpoint Token issued © 2013 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. 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.

Demo Using Visual Studio 2015 for OIDC / OAuth 2.0 with Azure AD Microsoft Ignite 2016 4/16/2019 9:20 AM Demo Using Visual Studio 2015 for OIDC / OAuth 2.0 with Azure AD © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

OIDC and OAuth 2.0 Stacks OWIN – NuGet Package for OIDC ADAL - Library to abstract implementation of underlying protocol. (Currently based on OIDC)

Active Directory Authentication Library (ADAL) Multiple platforms .NET, Windows Store, UWP, iOS, Android, Node.JS, Java Open source Server 2016 and AAD with cache support and automatic refresh NOT a protocol library Works with ADFS and AAD only

ADAL.NET Works with ADFS and AAD only Current (and last) version is 3.0 Being replaced by Microsoft Authentication Library (MSAL) (Converged model) Unified library that helps you to develop applications that work with Microsoft Accounts, AAD accounts and AAD B2C users

Demo NuGet Package Explorer Microsoft Ignite 2016 4/16/2019 9:20 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Use cases

Authentication scenarios Browser Web application Web API js Native app Web API Web API Server app Clients using wide variety of devices/languages/platforms Server applications using wide variety of platforms/languages video.ch9.ms/teched/2012/na/SIA209.pptx

Authentication scenarios WS-Fed, SAML 2.0, OpenID Connect OAuth 2.0 Browser Web application Web API js OAuth 2.0 Native app OAuth 2.0 Web API Web API Server app OAuth 2.0 OAuth 2.0 Standard-based, http-based protocols for maximum platform reach video.ch9.ms/teched/2012/na/SIA209.pptx

Microsoft Ignite 2016 4/16/2019 9:20 AM Demo JWT tokens with Postman and jwt.io with Azure AD and ADFS 4.0 on Windows Server 2016 © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Microsoft Ignite 2016 4/16/2019 9:20 AM Demo Using Visual Studio 2015 for OIDC / OAuth 2.0 with ADFS 4.0 on Windows Server 2016 © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Demo OIDC / OAuth 2.0 for native devices Microsoft Ignite 2016 4/16/2019 9:20 AM Demo OIDC / OAuth 2.0 for native devices © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Summary – OWIN vs ADAL “signatures”

OWIN app.SetDefaultSignInAsAuthenticationType (CookieAuthenticationDefaults.AuthenticationType); app.UseCookieAuthentication(new CookieAuthenticationOptions()); app.UseOpenIdConnectAuthentication( new OpenIdConnectAuthenticationOptions { ClientId = clientId, Authority = Authority };

ADAL AuthenticationContext ctx = new AuthenticationContext ("https://login.microsoftonline.com/tenant.onmicrosoft.com"); AuthenticationResult ar = await ctx.AcquireTokenAsync ("https://outlook.office365.com", "bf1cf655-58ad-4618-9680-315f4cc815e3")

Demo Easy Auth with Azure AD Microsoft Ignite 2016 4/16/2019 9:20 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Demo Device profile with Azure AD Microsoft Ignite 2016 4/16/2019 9:20 AM Demo Device profile with Azure AD © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Resources Azure Active Directory developer's guide – https://aka.ms/aaddev Azure code samples - https://aka.ms/aadsamples Secure your web applications with Microsoft identity - https://channel9.msdn.com/Events/Ignite/2016/BRK3181 Secure your native and mobile applications with Microsoft identity and application management https://channel9.msdn.com/Events/Ignite/2016/BRK3182

Resources Discover what's new in Active Directory Federation and domain services in Windows Server 2016 https://channel9.msdn.com/Events/Ignite/2016/BRK3074 Server 2016 ADFS Development - https://technet.microsoft.com/en-us/windows-server-docs/identity/ad-fs/ad-fs-development OInspector - https://github.com/vibronet/OInspector/tree/dev

Resources A Guide To OAuth 2.0 Grants - https://alexbilbie.com/guide-to-oauth-2-grants/ NuGet Package Explorer - https://github.com/NuGetPackageExplorer/NuGetPackageExplorer

Identity Sessions A lap around Azure AD B2C for developers (Business to Consumer) [M305] - Tue 25 Oct, 2:55 PM   Identity; What you need to know to be in the Microsoft Cloud [M209] - Tue 25 Oct, 4:15 PM   Deep Dive into the Microsoft Graph API [M331] - Wed 26 Oct, 1:40 PM   Integrating OpenID Connect / OAuth2 with Azure AD and ADFS [M337] - Wed 26 Oct, 2:55 PM A world without passwords: building a more secure web [M362] - Thu 27 Oct, 1:40 PM  

Attribution Icon by Madebyoliver from flaticon.com Icon by Freepik from flaticon.com Icon by Hanan from flaticon.com Icon by Appzgear from flaticon.com Icon by Dave Gandy from flaticon.com

4/16/2019 9:20 AM © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.