PoC proving support for OAEP in pyjwt
- pipenv
- chromium (headless)
pipenv install
Execute the backend with
pipenv run backend.py
Then login with the client with
pipenv run client.py
When asked, the username is user
and password is pass
.
The token is printed on the console. Use https://jwt.io/ to double check that the algorithm RSA-OAEP
is correctly being decoded.
-
The keycloak is a dedicated instance hosted by https://www.cloud-iam.com. Thanks a bunch for the free offering which made this PoC incredibly easy.
-
Code is part of an article which I authored about SSO and Flask. You can read it on https://paragraph.xyz/@digitalmeadow/[python]-sso-using-flask,-requests-oauthlib-and-pyjwt for further details on implementation.