This repository demonstrates a simple command line utility to login to an authorization server (Okta in this case).
A step by step explanation is provided at Simple CLI Application to Login to Okta using PKCE.
This can be used to illustrate the authorization/authentication flow discussed in Simple SSO with an external IdP using Active Directory and Okta. A flow which is pictured here:
with inspiration from...