fastapi-keycloak-oidc-auth
fastapi-keycloak-oidc-auth copied to clipboard
DecodeError: It is required that you pass in a value for the "algorithms" argument when calling decode()
I'm running these containers and followed instructions in my readme. I'm on Windows, running these docker containers in a Linux VM. When I visit localhost:8000/login, I log in with the test user. But, I then am faced with this error.
It seems like there's supposed to be something I do in the root() method, with the TODO. But it's not clear to me what should be done.
500 Server Error DecodeError: It is required that you pass in a value for the "algorithms" argument when calling decode(). Traceback
File /usr/local/lib/python3.7/site-packages/jwt/api_jwt.py, line 87, in decode_complete‒ 84.
-
if options["verify_signature"] and not algorithms: -
raise DecodeError( -
'It is required that you pass in a value for the "algorithms" argument when calling decode().' -
) -
decoded = api_jws.decode_complete(
File /usr/local/lib/python3.7/site-packages/jwt/api_jwt.py, line 119, in decode+ File /appuser/app/main.py, line 70, in root+ File /usr/local/lib/python3.7/site-packages/fastapi/routing.py, line 159, in run_endpoint_function+ File /usr/local/lib/python3.7/site-packages/fastapi/routing.py, line 227, in app+ File /usr/local/lib/python3.7/site-packages/starlette/routing.py, line 61, in app+ File /usr/local/lib/python3.7/site-packages/starlette/routing.py, line 259, in handle+ File /usr/local/lib/python3.7/site-packages/starlette/routing.py, line 656, in call+ File /usr/local/lib/python3.7/site-packages/starlette/exceptions.py, line 71, in call+ File /usr/local/lib/python3.7/site-packages/starlette/exceptions.py, line 82, in call+ File /usr/local/lib/python3.7/site-packages/starlette/middleware/cors.py, line 84, in call+ File /usr/local/lib/python3.7/site-packages/starlette/middleware/errors.py, line 159, in call