I am a little unsure with implemention OAuth for an API built on Symfony.
Situation: API on Symfony using common FOS Bundles as advised here. Front end will be on SilverStripe so login form will reside on a different domain on SilverStripe framework.
This is the required workflow: User fills in username and password on front end form on SilverStripe -> API call to check whether username and password is correct -> if credentials are correct API gives an access_token and all the other values required for subsequent calls to API (which I am not sure of)
All the tutorials I found are implementing oauth for Facebook or Twitter.
Not really sure how to do this as I am new to API.