/images/nasan-avatar.jpeg

OAuth 2.0 - Tutorial 2 - Azure Server Side Python WebApp Auth Code Flow - Entra ID

Introduction

In the previous tutorial Localhost Python WebApp Auth Code Flow with Entra ID , we demonstrated using a localhost web app as a “server-side app” (confidential client) with the Authorization Code Flow. In this tutorial, we will deploy the app to Azure, making it a true “server-side app” where users cannot access secrets.

The following steps are required to deploy the app to Azure:

  • Create an Azure Container Registry
  • Create a Dockerfile and publish the image to the registry
  • Create an Azure Web App using this container
  • Add environment variables (tenant, client ID, client secret)
  • Add a new redirect URI to the app registration
  • Update the redirect URI in the app code

Prerequisites

  • Microsoft Azure Tenant with active Subscription
  • Docker installed
  • Azure CLI installed
  • UV installed: UV Installation

Create Azure Container Registry

Create an Azure container registry where you can store your docker images:

OAuth 2.0 - Tutorial 1 - Localhost Python WebApp Auth Code Flow with Entra ID

Introduction - “Server Side App” - Auth Code Flow

This guide demonstrates how to create a “server-side” Python web application running locally (for development; in the second tutorial, we will deploy it to Azure) that authenticates users with Microsoft Entra ID and authorizes access to the Microsoft Graph API using the Authorization Code Flow as a “confidential client” with a client secret.

The client is considered confidential because the app runs solely on the server, and users do not have access to the client secret.

Was ist Philosophie?

Im folgenden YouTube-Video versuche ich, einen kurzen und groben Überblick über das Thema „Was ist Philosophie?“ sowie deren Disziplinen zu vermitteln:

Disziplinen der Philosophie

In diesem Diagramm sind einige der wichtigsten philosophischen Disziplinen grob dargestellt.

Read More

Software Architecture - mind maps

I have started creating minimal mind maps about Software Architecture. I plan to extend them further in the future.

Software Architecture Roadmap

You start with architectural characteristics. Then you’ll need to get the logical components, pick a style and finally document your decision.

/images/SOFTWAREARCHITECTURE-Overview.jpg
Software Architecture Mind Map