From 06bd85eb03b948a7965a19c2cb6f622a118046b3 Mon Sep 17 00:00:00 2001 From: Mark <mark@openappstack.net> Date: Mon, 4 Nov 2019 15:31:33 +0100 Subject: [PATCH] Revert downgrade of hydra-client lib --- consent_provider/app.py | 2 +- consent_provider/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/consent_provider/app.py b/consent_provider/app.py index 8cc51ab..5f1629d 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 f944e30..00c8039 100644 --- a/consent_provider/requirements.txt +++ b/consent_provider/requirements.txt @@ -1,3 +1,3 @@ Flask -hydra-client==0.5.0 +hydra-client graphqlclient -- GitLab