salvamomo / drupalauth

Automatically exported from code.google.com/p/drupalauth
0 stars 0 forks source link

Drupalauth module doesn't redirect when user is already logged in #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Log in as a user on Drupal site
2. Goto site with SAML SP
3. Redirect to Drupal site
4. Notice that you just get the front page and don't get redirected back to SP 
site.

The attached patch fixes the issue by hooking into hook_init and if the user is 
already logged in ($user->uid != 0), performs the redirect. 

Original issue reported on code.google.com by justin.cherniak@gmail.com on 22 Dec 2013 at 4:33

Attachments:

GoogleCodeExporter commented 9 years ago
By hooking into hook_init, we no longer need to hook into hook_user_view, so 
this solved issue 13 as well.

Original comment by justin.cherniak@gmail.com on 22 Dec 2013 at 4:36

Attachments: