Handle UI for dangerous scopes
This commit is contained in:
parent
02e47ed572
commit
05a1413153
4 changed files with 69 additions and 7 deletions
|
@ -374,7 +374,10 @@ def request_authorization_code():
|
|||
}
|
||||
|
||||
# Show the authorization page.
|
||||
return render_page_template('oauthorize.html', scopes=scope_info, application=oauth_app_view,
|
||||
has_dangerous_scopes = bool([scope for scope in scope_info if scope['dangerous']])
|
||||
return render_page_template('oauthorize.html', scopes=scope_info,
|
||||
has_dangerous_scopes=has_dangerous_scopes,
|
||||
application=oauth_app_view,
|
||||
enumerate=enumerate, client_id=client_id,
|
||||
redirect_uri=redirect_uri, scope=scope,
|
||||
csrf_token_val=generate_csrf_token())
|
||||
|
|
Reference in a new issue