Allow Users to use oAuth as a Login System and provide data-sources for login and data-retrieval. Support is currently limited for the main providers
Add as a submodulegit submodule add git://github.com/jonmifsud/oauth.git extensions/oauth --recursive
- Version: 0.1.2
- Author: Jon Mifsud http://jonmifsud.com
- Build Date: 2012-06-04
- Requirements: Symphony 2.3
- Download the OAuth extension and upload the
oauthfolder to the
- Enable the extension by selecting
OAuthin the list and choose
Enablefrom the with-selected menu, then click Apply.
- For Any oAuth that you intend to use add in the Application Code and Secret; and if required you can also add a scope
- If you would like oAuth to be used as a main-login select an oAuth Provided to be used as main - this will output an event showing if the user is logged in.
Once you Install the extension you would need to add the
oAuth event to a Symphony page which will take care of Autentification/Authorization. TODO this has to be a param
In the case where you have a 'main' provider
/data/events/oauth/url should contain the URL where you should redirect the person to log-in. Or to be provided in a link (button)
Once Authorized the user will be redirected to your Authorization page which will log-in the user and redirect to a predifined page.
Alternatively you would need to add a DataSource to the page - first proceed by creating a DataSource of Type oAuth, then choose the provider you would like to use. You would find the url in a similar manner as for the main but rather then being in Events it would be under your datasource.
When Verified the XML Element would have two parameters
yes (if not logged-in says
no) as well as a
token which represnts the valid token given to the user.
If you would like to use data from these social networks - you are free to create datasource of type 'oAuth Remote Datasource', these allow you to specify the Provider you want to use, the path to pass to the oAuth request and the xPath of the output that you want visible in your XML
Note that currently the event has to be attached to an actual page - at the moment this has to be
authorize = available through
must also have a url parameter named
source. Whilst this is mandatory for now - the plan is to move this into preferences allowing the user to specify. Note that this
is still in experimental stage and might not work 100% as exptected.
Currently there is an issue with logging out of Users. The session seems to not expire. This should be fixed soon along anything else that might be noticed.
Currently oAuth only supports the use of secondary logins when there is already a Main Provider (to augment data/logins) in the future might offer the option to login with any system and still consider the user to have a valid login.
Support Additional oAuth Providers as well as events to push data and a tutorial how to create custom events/datasources using oAuth Libraries provided along this extension
- initial release of this extension
Requires Symphony 2.3
Minor Bug Fixes + Addition of an oAuth event to allow post requests
Requires Symphony 2.3
- Initial release