最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

oauth 2.0 - Make HWIOAuthBundle use a specific domain in multi domain app - Stack Overflow

programmeradmin9浏览0评论

Am building an app in Symfony 7 that will use HWIOAuthBundle as alternative autentication method.

However, having to go back and configure new domains in the third-party services everytime we add a new one will be combersome.

Is there some setting that can be used to tell HWIOAuthBundle to use a specific domain for all interactions with third-party services so that I only have to configure that domain?

Here's what I need to happen:

1. User goes to domainB.tld and clicks the button to login using google/facebook/other
2. HWIOAuthBundle contacts the service using domainA.tld to get an autentication request window
3. HWIOAuthBundle receives from the service a response (token/fail) at domainA.tld/login/check-{servicename}
4. HWIOAuthBundle sends the response to domainB.tld for handling as if domainB.tld had received it from the third-party service

Only communication with the third-party service would happen in domainA.tld - handling the response would be done in domainB.tld.

Is this even possible with HWIOAuthBundle?

I've been looking through the documentation and found target_path_parameter and target_path_domains_whitelist - but these don't seem to be what I need, or at least I couldn't get them to work as I need them to.

In fact I didn't even manage to understand what they do, as setting them didn't appear to change anything.

发布评论

评论列表(0)

  1. 暂无评论