symphonycms/members — Issue #175: Allow integration with other Member types
Author: brendo
Created: 2011-10-21 09:03:54+00:00
State: open

The goal of the Members extension, and it's Member interface is to allow other Member types to be created by extension developers that can handle at minimum the Login and Logout of Members (for example, OAuth, Facebook etc).

At the moment this is not possible as the extension driver will always intialise the `SymphonyMember` type. Somehow this needs to change (probably a delegate) so that other members types can 'activate' themselves (ie. Facebook sends a `$_GET['signed_request]`, so a Facebook implementation might look for that parameter to see if it's required to do work).

Additionally, the `checkFrontendPagePermissions` function is fairly hardcoded to expecting `$_REQUEST['member-action']['login']` to trigger the 'login' logic. This needs to be abstracted in a similar fashion.

The Members extension currently provides an `Identity` class, with the idea that any new Member types extend this class to create a field that stores their identifying factor (eg. FacebookID). I believe this is mostly OK and will work as expected, but it should be reviewed as well.

/cc @remie @bauhouse