fix: show list of user details that we are giving access to if scope is openid

This commit is contained in:
Shariq Ansari 2023-07-18 17:15:58 +05:30
parent cbe9ec26bd
commit 264372a2a3

View file

@ -101,6 +101,10 @@ def authorize(**kwargs):
frappe.local.response["type"] = "redirect"
frappe.local.response["location"] = success_url
else:
if "openid" in scopes:
scopes.remove("openid")
scopes.extend(["First Name", "Last Name", "Email", "Password", "User Image", "Roles"])
# Show Allow/Deny screen.
response_html_params = frappe._dict(
{