[shib_auth] Hook when user account is created

Markus Broman brom at dsv.su.se
Tue May 3 10:51:37 CEST 2011


Hi

I'm trying to assign roles to users upon login, depending on a http request I make from a custom module.

What I want is to hook onto hook_user and if case: "insert", add roles to the user. So that when the user logs in the first time he belongs to the roles. This doesn't work. The second time the user logs in I can use case: "login" and add the roles but then he won't have access to some content the first time he logs in.

Unfortunately I can not use role assignment in Shibboleth authentication because I don't get these roles from Shibboleth attributes.

Is there a hook or something in Shibboleth authentication where I can make these changes?

regards, Markus


More information about the shib_auth mailing list