I am Ruben Rodriguez and I have presented one proposal for Google Summer of Code for "Remote web services management". I have some previous experience with webservices and Joomla as user, but not as a developer of Joomla CMS. Because of this, I am using this previous days to practice with Joomla CMS and try to understand how it works.
I am working right now in a plugin to use Facebook Authentication using the existing libraries in Joomla CMS for facebook. My first idea, after looking to the other plugins of authentication, was to create a new one that will conect to facebook to do the authentication, but then I have found the problem about how OAuth2 works:
- Redirect the user to facebook.
- Ask the user to let the app use their data.
- Redirect to the joomla site with an auth token.
So, when the user is redirected again to the Joomla site, it is out of the authenticate method and the token is not used.
The first thing that goes through my mind was to use one of the system events to check before the page is loaded if there is a token in the request and do the authentication, but not sure about that.
Do you have any advice on how should I treat this in Joomla? Somewhere to take a look?
Thanks in advance.
Ruben