Google oauth子域

扫码查看
本文介绍了Google oauth子域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在网站(example.com)上实现了Google oAuth.除了我站点中子域的auth(我有成千上万个子域)之外,其他所有东西都工作正常.当用户尝试通过子域进行授权时,例如

I have implemented Google oAuth on the site (example.com). Everything works fine except auth from subdomains on my site(I have a thousands of subdomains). When the user tries to authorize via subdomain, for example

fr.example.com
product1.example.com
product2.de.example.com

我收到来自Google的错误-

I receive an error from Google -

The redirect URI in the request did not match a registered redirect URI

如何解决?

推荐答案

这是因为Google的OAuth不支持通配符子域匹配.您可以在此处

That's because Google's OAuth does not support wildcard subdomain matching. You can refer to more documentation here

这篇关于Google oauth子域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-17 00:01
查看更多