Blog post -
OAuth 2.0 Authorization Code flow explained -
Introduction to OAuth 2.0 -
Setup Keycloak as OAuth 2.0 server in Windows for development and testing -
Client credentials flow and JWT explained -
In this video, we will learn how create a python flask web application that uses OAuth 2.0 Authorization code flow to authenticate and authorize users. We will use keycloak as a OAuth server in this example.
Table of contents -
Please subscribe, like and share this video
00:00 - Intro
00:42 - About OAuth 2.0 Authorization code flow
02:15 - Create user in OAuth server(Keycloak)
03:38 - Register web application in OAuth server(Keycloak)
05:13 - Create Flask web application
07:09 - Create OAuth client instance in flask application
09:54 - Login redirection endpoint
11:17 - Login callback endpoint
12:35 - Login user using flask session
14:06 - Render user information in the web page
17:13 - Logging out the user
22:23 - Add PKCE (Proof Code for Key Exchange) to workflow
23:23 - Outro