I've successfully installed and tested the OAuth 2 workflow with Symfony 2 and FOSOAuthServerBundle.
I can request a code, and get a pair of access/refresh token successfully from a "login with" button on a third party test page i've set up and retrieve a user from my API through a custom API call. Pretty cool here.
However, each time I test the flow from the beginning, my oAuth server keeps on redirecting the user on the authorization page. Here are my questions.
If anyone struggles again, the solution is here :
This feature is not default in FOSOAuthServer bundle. You have to create and EventListener
and check client or user status, save the user's choice, and [quote:even bypass the authorization process].