I'd want to create a set of API secured with Oauth2 protocol in Symfony 2.8.
OAuth server is implemented with FOSOAuthServerBundle and resides in the same server as API set.
Client Applications should communicate with API server through HWIOAuthBundle but They should do that on behalf of applications themselves, not third party users. In Google API this is called a 2 legs oauth authentication.
Obviously client applications can't send username and password data through a form, so I was wondering if it does exist a bundle or another method to expose oauth authentication for client applications logging in by themselves or I should simply extend HWIOAuthBundle Controller.
Please find below AOuthentication method using js and an extended HWIOAuthBundle
I don't know why do need password for OAuthentication process, normally client request an access token from google api and with access token / permissions /scope you can retrieve all expected data.
And below server side controller (HwiOAuthController / or custom Controller )
hope this helps you