I have managed to install this… and make it work. I implemented it for Facebook and Google, but you can extend it. My solution it is mostly as described in #116, with a bit of more code presented. The key aspects that lack in the #116 presentation (IMO) are:
- the registration as service of your custom FOSUBUserProvider (with the necessary parameters)
- set the service for
security.ymlwith your custom created service
Here are the steps:
- Routing. In
routing.ymlI have added all the routes for both bundles.
- Configuration. I have set the
config.ymlmostly as it is presented in the HWIOAuthBundle.
- Security. I have set the
security.ymlmostly as it is presented in the HWIOAuthBundle (though my routes are using
/connect). Also, the
oauth_user_provideris set for my custom service.