Trigger for "User has logged in" event

Events happening in the community are now at Drupal community events on www.drupal.org.
heatherwoz's picture

I've set up a rule to fire on the event "User has logged in," but it doesn't get triggered when I authenticate with Shibboleth (shib_auth module). It does when I login as a native Drupal user or even LDAP user (ldap module). This is for a Drupal 7 site.

What is the actual hook/method that "User has logged in" depends on? The shib_auth module calls user_external_login_register which then calls user_login_submit, so I'm not sure what's getting bypassed. Would the best solution be a custom event "Shibboleth user has logged in," or might this be considered a bug in the shibboleth module?

Comments

Partial solution

heatherwoz's picture

I've created a custom event based on hook_user_login that does fire when a user logs in via shibboleth. Why this event works and the default one doesn't I don't know, from what I can tell it should depend on the same user_login event, but maybe it doesn't. If anyone can clarify it would be helpful.

Do you need any thing other

rahulshah_1988's picture

Do you need any thing other than the Rules module to capture the Log in Event. I am having trouble with the 'User has Logged in' event in the Rules module. Not working for me. All other event work fine.

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: