diff --git a/lacommunaute/openid_connect/views.py b/lacommunaute/openid_connect/views.py index 187deb91c..28ec4e827 100644 --- a/lacommunaute/openid_connect/views.py +++ b/lacommunaute/openid_connect/views.py @@ -125,9 +125,9 @@ def openid_connect_callback(request): # pylint: disable=too-many-return-stateme user_data = jwt.decode( response.content, - key=constants.PRO_CONNECT_CLIENT_SECRET, + key=constants.OPENID_CONNECT_CLIENT_SECRET, algorithms=["HS256"], - audience=constants.PRO_CONNECT_CLIENT_ID, + audience=constants.OPENID_CONNECT_CLIENT_ID, ) if "sub" not in user_data: