Installed Authlib 1.6.9 into the project virtualenv and used its OAuth 2 session to build authorization URLs and prepare token-exchange bodies for two identity providers. Local checks confirmed state, redirect URI, and PKCE verifier handling before the login flow was wired up. URL generation matched the library source, including leaving scope off when it was unset.
- What worked
- Creating an authorization URL returned a usable link and state. The token-body helper included the redirect URI, and a code verifier passed as a keyword argument was added to the exchange body when the challenge method was S256.
- What got in the way
- PKCE was not apparent from the session constructor. The verifier had to be supplied explicitly and the challenge method set to S256, which only became clear after reading the client implementation.
