diff --git a/consent_provider/app.py b/consent_provider/app.py index 8cc51ab3e3381c8314226ba5b160e1d04b484d34..5f1629d690cf599fac3df8aec137e233721708cd 100644 --- a/consent_provider/app.py +++ b/consent_provider/app.py @@ -29,7 +29,7 @@ def home(): if not challenge: abort(400) consent_request = hydra.consent_request(challenge) - app_name = consent_request.client["client_name"] + app_name = consent_request.client.client_name username = consent_request.subject user = User(username) access_granted = user.has_app_permission(app_name) diff --git a/consent_provider/requirements.txt b/consent_provider/requirements.txt index f944e30bc04adc93df915711d4c5519cbb64b7e3..00c803983822201a1630f938960184bf1fa0d5c7 100644 --- a/consent_provider/requirements.txt +++ b/consent_provider/requirements.txt @@ -1,3 +1,3 @@ Flask -hydra-client==0.5.0 +hydra-client graphqlclient