【发布时间】:2012-11-19 01:52:04
【问题描述】:
我有一个使用 google api(google drive)的网络应用程序。该应用程序被许多客户端使用,每个客户端都有一个子域来访问系统。
所以域是 appdomain.com
对于用户,我有 foo.appdomain.com、bar.appdomain.com、etc.appdomain.com。
但是在 google 控制台重定向 URI 中我必须手动放置重定向 url,有什么方法可以使用通配符重定向以使 google 接受任何子域,例如:*.appdomain.com?
有了这个我可以在redirect_uri中使用用户子域进行谷歌授权调用:
https://accounts.google.com/o/oauth2/auth?redirect_uri=http://foo.appdomain.com
【问题讨论】:
标签: google-api subdomain oauth-2.0 wildcard-subdomain google-authentication