A common question involves how to set up SSO with OAuth to take advantage of Azure's user management. The repo linked below demonstrates a couple of examples of achieving this with Python using the Authorization Code Grant flow (as implemented using GitHub during the Project Exercise).
Click here for the example repository example for Azure OAuth setup.