Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oauth2 in Symfony2

I'd like to use some APIs, foursquare for example, in my Symfony2 project. The problem is that instead of the 2 great FOS bundles concerning Twitter/Facebook, I'm not finding anything on OAuth (I tried the EtcPasswdOAuthBundle but did not manage to make it work because of a missing file I guess).

Moreover, I'd like to make it work with FOSUserBundle.

So, if you could give me some help, I do not understand how to manage OAuth with Symfony ...

Thanks !

like image 258
Saperlipopette Avatar asked Sep 22 '11 16:09

Saperlipopette


2 Answers

Two years later, but for all who might step over this link while searching for a solution:

The new OAuth2 package for client integration in Symfony2 is the HWIOAuthBundle, the KNPLabs is no longer maintained. - the server pendant is the FOSOAuthServerBundle.

like image 69
akluth Avatar answered Oct 04 '22 03:10

akluth


Facebook is using OAuth2, I guess you can easily make a Foursquare bundle based on the FacebookBundle.

like image 36
Arnaud Le Blanc Avatar answered Oct 04 '22 03:10

Arnaud Le Blanc