fix: show list of user details that we are giving access to if scope is openid
This commit is contained in:
parent
cbe9ec26bd
commit
264372a2a3
1 changed files with 4 additions and 0 deletions
|
|
@ -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(
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue