Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can HWIOAuthBundle use a specific domain in multi domain app? #2036

Open
537mfb opened this issue Feb 7, 2025 · 0 comments
Open

Can HWIOAuthBundle use a specific domain in multi domain app? #2036

537mfb opened this issue Feb 7, 2025 · 0 comments

Comments

@537mfb
Copy link

537mfb commented Feb 7, 2025

Am building an multi domain 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant