我已经获得了Google API的OAuth客户端ID和密钥。
我在Odoo中的Google OAuth提供者记录中设置了客户端ID。
我有适当的实时域名。当我尝试使用Google登录时,会出现Google登录屏幕。我输入适当的Google凭据,Google将我登录,然后尝试根据URL中指定的redirect_uri键重定向回我的Odoo实例。这是我遇到“redirect_uir_mismatch”错误的时间点。如果我打开一个新选项卡并转到Google,它会显示我已登录。
我尝试将Google OAuth注册中注册的'redirect_uri'与用于Google登录的url中的'redirect_uri'键进行匹配,两者相同。
我注册了以下redirect_uri:
编辑:
我删除了客户端ID和密钥,并创建了新的进行测试,现在我的Odoo实例中出现以下错误:
“You do not have access to this database or your invitation has expired. Please ask for an invitation and be sure to follow the link in your invitation email.”
解决方案:
您需要将标志“auth_signup.allow_uninvited”设置为“True”。
我在Odoo中的Google OAuth提供者记录中设置了客户端ID。
我有适当的实时域名。当我尝试使用Google登录时,会出现Google登录屏幕。我输入适当的Google凭据,Google将我登录,然后尝试根据URL中指定的redirect_uri键重定向回我的Odoo实例。这是我遇到“redirect_uir_mismatch”错误的时间点。如果我打开一个新选项卡并转到Google,它会显示我已登录。
我尝试将Google OAuth注册中注册的'redirect_uri'与用于Google登录的url中的'redirect_uri'键进行匹配,两者相同。
我注册了以下redirect_uri:
http://erp.mydomain.com/auth_oauth/signin
。在登录Google时,URL中也有相同的URI键。但它会抛出“redirect_uri_mismatch”错误。编辑:
我删除了客户端ID和密钥,并创建了新的进行测试,现在我的Odoo实例中出现以下错误:
“You do not have access to this database or your invitation has expired. Please ask for an invitation and be sure to follow the link in your invitation email.”
解决方案:
您需要将标志“auth_signup.allow_uninvited”设置为“True”。