> Hi there! I'm new to StatusNet, i'd like to create a statusnet/drupal > sso plugin, that would override the default login and register links, > pointing them a drupal login/register pages. It should also prohibit > direct access to these links. Besides whenever checking if a user is > logged in, it shouldn't check the statusnet db, but bootstrap drupal, > and from there on I should manage to make the checks. > > So: > - how to overwrite login / register links > - how to overwrite method that checks if user is logged in > There is an authentication (and authorization) plugin framework in place already, with a few implementations (LDAP, CAS, and some trivial examples). I suggest you take a look at plugins/ReverseUsernameAuthentication for a nice, trivial example of how to make an authentication plugin. You may also find plugins/CASAuthentication interesting.
Since Drupal does authorization as well, may I suggest a second phase of your project to involve implementation a Drupal authorization plugin for StatusNet? :-) Also, once you've done the work, please do submit a merge request, so we can include it in StatusNet - I bet it will be useful to a few people. ~Craig _______________________________________________ StatusNet-dev mailing list [email protected] http://lists.status.net/mailman/listinfo/statusnet-dev
