Skip to content
Snippets Groups Projects
Commit 2b4388eb authored by Mark's avatar Mark
Browse files

use client id instead of name

parent abc2e25f
No related branches found
No related tags found
1 merge request!40WIP: Update hydra
Pipeline #6385 failed with stages
in 1 minute and 17 seconds
......@@ -39,7 +39,7 @@ def home():
except hydra_client.exceptions.HTTPError:
app.logger.error("Conflict. Consent request has been used already. challenge={0}".format(challenge))
abort(503)
app_name = consent_request.client.client_name
app_name = consent_request.client.client_id
username = consent_request.subject
try:
user = User(username)
......
......@@ -91,7 +91,7 @@ def login():
"Login cancelled",
error_description="Login was cancelled and user session was terminated"))
else:
return render_template('skip.html', challenge=challenge, logo=login_request.client.logo_uri, application_name=login_request.client.client_name, username=login_request.subject)
return render_template('skip.html', challenge=challenge, logo=login_request.client.logo_uri, application_name=login_request.client.client_id, username=login_request.subject)
......@@ -100,7 +100,7 @@ def login():
# as a reference we save the challenge id in a hidden field of the form.
else:
login_form.challenge.data = challenge
return render_template('login.html', login_form=login_form, logo=login_request.client.logo_uri, application_name=login_request.client.client_name)
return render_template('login.html', login_form=login_form, logo=login_request.client.logo_uri, application_name=login_request.client.client_id)
if __name__ == '__main__':
app.run()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment