diff --git a/frappe/integrations/oauth2.py b/frappe/integrations/oauth2.py index 7abcfb5655..bf71a68aaa 100644 --- a/frappe/integrations/oauth2.py +++ b/frappe/integrations/oauth2.py @@ -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( {