diff --git a/consent_provider/app.py b/consent_provider/app.py index 7a05b1c7136fdb2caf915f6ddb1ccf849bfe3651..dd1b908d6c74963d9e6cac961b59dc1735d07474 100644 --- a/consent_provider/app.py +++ b/consent_provider/app.py @@ -11,7 +11,7 @@ app = Flask(__name__) @app.route('/', methods=['GET']) def home(): hydra = HydraAdmin(HYDRA_ADMIN_URL) - challenge = request.args.get("consent_challenge") or form.challenge.data + challenge = request.args.get("consent_challenge") if not challenge: abort(400) consent_request = hydra.consent_request(challenge)