Symfony2+FOSOAuthServerBundle: Browser-less initial authentication Symfony2+FOSOAuthServerBundle: Browser-less initial authentication symfony symfony

Symfony2+FOSOAuthServerBundle: Browser-less initial authentication


Yes, FOSOAuthServerBundle can do that for you. Just use Resource OwnerPassword Credentials Grant according to OAuth 2 spec.

Here is the instruction how to add client (app) with different grant types http://blog.logicexception.com/2012/04/securing-syfmony2-rest-service-wiith.html

List of available grant types: https://github.com/FriendsOfSymfony/oauth2-php/blob/b0e57e17c84175a51af01cef7bbb2961261c84ad/lib/OAuth2.php#L230