HWIOAuthBundle is a composer bundle enabling social login in Symfony2 projects:
https://github.com/hwi/HWIOAuthBundle
The Symfony2 docs give an example of how to simulate authentication in a functional test:
http://symfony.com/doc/current/cookbook/testing/simulating_authentication.html
I have not been successful in getting these two to work together in my tests, though. The Symfony2 security system indicates that there is a non-anonymous user but getUser() in my Controllers returns null.
Anyone had success with this or has some pointers on how to best debug or implement?
Using:
- Symfony2 - 2.6.3
- HWIOAuthBundle - dev-master - 309d802f8de9f39e30851a145a7fc0de69b94076