Skip to content

Instantly share code, notes, and snippets.

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 oauth_user_provider in the security.yml with your custom created service

Here are the steps:

  1. Routing. In routing.yml I have added all the routes for both bundles.
  2. Configuration. I have set the config.yml mostly as it is presented in the HWIOAuthBundle.
  3. Security. I have set the security.yml mostly as it is presented in the HWIOAuthBundle (though my routes are using /login pattern, not /connect). Also, the oauth_user_provider is set for my custom service.
@tylerism
tylerism / index.html
Created June 25, 2014 03:01
A Pen by Adam T Pugh.
<div id="slide-wrapper">
<div id="next" class="slide-nav"></div>
<div id="prev" class="slide-nav"></div>
<div id="slideholder" >
<div class="hero" style="background:url( http://placecage.com/c/200/400)">1</div>
<div class="hero" slide="1">2</div>
<div class="hero" slide="2">3</div>
<div class="hero" slide="3">4</div>
<div class="hero" slide="4">5</div>
<div class="hero" slide="5">6</div>