set up FOSOAuthServerBundle and configure authentication with APIKey and form.