On Apr 27, 11:09 am, Solberg Andreas Åkre <
andreas.solb...@uninett.no>
wrote:
> I'm reposting a mail from Snorre about rewriting the integration code.
>
> Sorry that it is not in english.
Found another bug... When the session simplesamlphp expires the user
remain valid in Drupal. Should be an easy fix.
Translated message:
I had some problems / errors with the module when I used on
pifu.no.
Might be something I had messed up but I ended up rewriting the entire
module last night. Started from scratch but used some of the code
from the original.
The main differences:
* The module now uses Drupal's built-in functionality to connect
remotely authenticated users to internal users. Which attribute drupal
should use to identify the remote user can be configured. Defaults to
eduPersonPrincipalName. (Use the table authmap, user_external_load,
user_external_login_register etc.)
* The module now use hook_user to process user creation, login,
logout. I.e the users can click the standard "Log out" and also
trigger SLO.
* Removed the internal full name routine Jon had made. Replaced with
the option "Smartname [drupaluid]"
One problem remains... When the drupal page cache is enabled the user
is not logged when he returns after the federated login: Only when he
visits a new page on the site he gets the proper user credentials. A
bit annoying. Without caching it works as it should ... Any ideas?
I haven't uploaded this version to the svn-repository yet...
--
Snorre