My Spring MVC web application is serving simultanously three different web shops with three different domains (let's call them domain1.com, domain2.com and domain3.com).
For each of these shops I need to offer an own Social Login (with custom login screen title, custom data privacy statement, ...). Therefore I need to create three different social provider (f.e. facebook) apps.
In Spring Social - from my understanding - I'm allowed to add only one FacebookConnectionFactory and hereby only one provider app.
How can I despite that add these three different facebook apps to Spring Social? Is Spring Social capable to manage this? Are there workarounds existing?
May be I answered too late for the OP but this could be usefull for other developers. I implemented a workaround for this issue defining my own "Registries" as follow:
And implement a factory in order to retrieve the proper
ConnectionFactoryRegistryrelated to the "current" shop (identified by the shopKey).With this code you can retrieve the facebookConnectionFactory for the
shop1: