Jon Rumsey

An online markdown blog and knowledge repository.


Project maintained by nojronatron Hosted on GitHub Pages — Theme by mattgraham

The MSFT Identity Platform

Microsoft Identity Platform helps manage identities and aspects of AuthN and AuthZ. Write-ups on this page will collect thoughts, notes from seminars and online sesions, as well as research discoveries revolving around MSFT ID Platform.

Azure Friday Episode 25-June-2021

Host: Scott Hanselman

Guest and Presenter: Christos Matskas '@christosmatskas'

Overview

Why roll your own identity architecture? It's not really recommended, but what service can you trust and what features will be helpful to your project (and organization)?

Christos says it is not your job to write your own ID layer.

Compromises continue to happen to organizations that take the complex route of 'rolling their own ID infrastructure'.

Identity might not be sexy, but it is a required service in today's tech-heavy world, and must be managed.

MSFT ID Platform is built on top of Open-ID technologies.

MSFT ID has hudreds of developers building, improving, and managing the ID Platform so you do not have to.

Why would you want to store your user's passwords? Breaches regularly make passwords available to hackers.

Azure Active Directory:

MSFT ID OOB Capabilities:

MS ID Platform for Developers

Note: You can bring your own library, not limited to MSFT OIDC Libraries.

Includes support for Android and iOS, as well as Windows.

ID Within the MS Ecosystem

Additional benefits here when using:

Easier to implement and integrate security into your application.

Demo

  1. Create new DotNet application.
  2. Use flag --auth name to download and install libraries for Azure AD integration.
  3. CD into project and open VSCode / Visual Studio. Depending on the template, parts of the code will be implemented already.
  4. Open Startup.cs and configure ConfigureServices() to add MicrosoftIdentityWebAppAuthentication(Configuration) as an IServiceCollection services member.
  5. Open Azure AD and create a new Application Registration.
  6. Configure the Platform (ASP.Net => Web, etc), define Redirect URIs, Logout URL, etc.
  7. Azure AD App Registration will provide an Application ID. Add that to your application in appsettings.json/AzureAd.
  8. Save changes in Azure AD App Registration settings, and the DotNET Application and run it.

Note: This is a lot like Auth0 setup and configuration. MSFT I Platform will also do the redirect login screen.

Summary:

  1. Create App if not already exists.
  2. Register App in Azure AD.
  3. Add 1 line of code to the App.
  4. Edit/handle 4 configuration items between the App and the Azure AD registration.

DONE!

Resources

AzureFriday An Intro to Microsoft Identity Platform.

MS ID Platform Docs.

Code samples.

Return to ContEd Index.

Return to Root README.