Skip to content

Instantly share code, notes, and snippets.

View Soolan's full-sized avatar
🍹
Serial Chiller!

Sohail Salehi Soolan

🍹
Serial Chiller!
View GitHub Profile
@Soolan
Soolan / install-php-tools-4-jenkins.sh
Last active February 18, 2016 02:10
php tools for jenkins
#!/bin/bash
# Author : Sohail Salehi <info@soolan.com>
#
# Hello. My name is Sohail Salehi and I am a fullstack web developer.
# I would love to bring years of my experience to your projects.
# remote/onsite projects are welcome.
# Please check my CV and let me know if I could be any help.
# http://soolan.com
echo -e "These are PHP Tools reuired by Jenkins. \nThey will be downloaded, received +x permission and moved to /usr/local/bin for global access"
# Author : Sohail Salehi <info@soolan.com>
#
# Hello. My name is Sohail Salehi and I am a fullstack web developer.
# I would love to bring years of my experience to your projects.
# remote/onsite projects are welcome.
# Please check my CV and let me know if I could be any help.
# http://soolan.com
Install postgresql under debian:
@Soolan
Soolan / 1-Explanations.md
Created February 24, 2016 08:43 — forked from danvbe/1-Explanations.md
A way to integrate FosUserBundle and HWIOAuthBundle

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.