Trying to setup OAuth for SSO between 2 Frappe Apps (Version-14)
Followed this guide - OpenID Connect and Frappe social login
- Getting below error after entering user/password after redirecting to Frappe IDP Server
Traceback (most recent call last):
File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 68, in application
response = frappe.api.handle()
File "/home/frappe/frappe-bench/apps/frappe/frappe/api.py", line 55, in handle
return frappe.handler.handle()
File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 31, in handle
data = execute_cmd(cmd)
File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 67, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1198, in call
return fn(*args, **newargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/www/login.py", line 92, in login_via_frappe
login_via_oauth2("frappe", code, state, decoder=decoder_compat)
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/oauth.py", line 110, in login_via_oauth2
info = get_info_via_oauth(provider, code, decoder)
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/oauth.py", line 146, in get_info_via_oauth
frappe.throw(_("Email not verified with {0}").format(provider.title()))
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 437, in throw
msgprint(msg, raise_exception=exc, title=title, indicator='red', is_minimizable=is_minimizable, wide=wide, as_list=as_list)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 416, in msgprint
_raise_exception()
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 370, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.ValidationError: Email not verified with Frappe
-
The OAuth Authorization Code has scope ‘openid’ only (Default setting when selecting Frappe as Social Login Provider which we are not able to edit in Frappe App Server)
-
How to map roles from IDP Server to the App Server ?
Thank you