We have a webapp over Symfony2.1, and we are trying to securize some REST webservices by using OAuth. These webservices are to be consumed by an Android app.
We are trying FOSOAuthServerBundle, and seems OK for authenticating the use of webservices from other websites, as the auth step is fully web-based.
But what we need is the next workflow:
- The user enters his username and password in the app
- The app then uses this information for automatically retrieving a valid Oauth token.
- The app uses this Oauth token as a parameter while consuming the OAuth-secured REST webservices.
Is this possible? Is FOSOAuthServerBundle the Bundle we need? How can we retrieve a valid OAuth-token without user interaction, only with username+password as parameters of the auth?
Thanks a lot.