Integration with a Bokeh server

I’m trying to integrate a login with a Bokeh (i.e. Tornado, Python) server.

As a starting point, I was trying to get this running:

But we’re using PKCE and I can’t find a Python example of that situation.

In case it isn’t obvious, Python is not my strong point.