print more infos to the user while oauth authorize
This commit is contained in:
parent
aaf428575b
commit
157bf65635
|
@ -33,7 +33,9 @@ def registration_endpoint():
|
||||||
@login_required
|
@login_required
|
||||||
def authentication_endpoint_confirm():
|
def authentication_endpoint_confirm():
|
||||||
form = OidcAuthenticationConfirm()
|
form = OidcAuthenticationConfirm()
|
||||||
return render_template('frontend/oidc_authentication.html.j2', form=form)
|
auth_req = current_app.provider.parse_authentication_request(urlencode(flask.request.args),
|
||||||
|
flask.request.args)
|
||||||
|
return render_template('frontend/oidc_authentication.html.j2', form=form, auth_req=auth_req)
|
||||||
|
|
||||||
|
|
||||||
@oidc_provider_views.route('/authentication', methods=['POST'])
|
@oidc_provider_views.route('/authentication', methods=['POST'])
|
||||||
|
|
|
@ -6,9 +6,13 @@
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<p>
|
<p>
|
||||||
A service ask for access to your account data.<br>
|
A service ask for access to your account data.<br>
|
||||||
|
</p>
|
||||||
You can confirm this pressing "Continue"
|
<p>
|
||||||
|
<b> Requested Scopes: {{ auth_req['scope'] }}</b>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
You can confirm this pressing "Continue"
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
{{ render_form(form) }}
|
{{ render_form(form) }}
|
||||||
|
|
Loading…
Reference in a new issue