The following only occurs on the first load of the page, when ldap_sso_boot is triggered and no cookie is set.

When using ldap_sso as the authentication mechanism the module will redirect the user to /user when opening the frontpage instead of the frontpage itself.
When open a subpage is opened the module will redirect you to /somepage after ldap_sso is successful.

The default behavior for requesting the frontpage should be to see the frontpage after ldap_sso is completed, not the users profile page.

CommentFileSizeAuthor
#1 ldap_sso-destination-1485118-1.patch831 bytesPaulHartman

Comments

PaulHartman’s picture

StatusFileSize
new831 bytes

The following patch fixes this 'problem'.
I don't know if the redirection to the user profile was done by design, but to me this is not the right procedure.

If the user is authenticated the user should be shown the frontpage, not the profile page.

I also changed the query destination behavior to use the drupal 7 common function drupal_get_destination instead of $_GET['q'].

johnbarclay’s picture

Status: Active » Needs review

Thanks. This looks correct to me and I've committed it. I'm leaving marked as "needs review" until other ldap sso users test it or the issue ages well without comment.

johnbarclay’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.