We've got one for logouts; one for logins would be useful as well.

The logic is at the end of simplesamlphp_auth_loginpage().

Comments

nicolaj.knudsen@gmail.com’s picture

Issue summary: View changes

For others looking to add this functionality, I've had great success with the login destination module: https://www.drupal.org/project/login_destination.

I can be done via Rules as well.

aniket.mohite88’s picture

Hi Nicolaj,

Can you help me how you did this with rules?
Or does using module like login-destination work out of the box with simpleSAMLphp Authentication.

Please help.

Thanks & Regards,
Aniket Mohite

aniket.mohite88’s picture

Hi,

I tried the login-destination module, but it does not work.

All I want is, if I am on a page - https://subdomain.example.com/articles/my-artcile where -

  • The URL has https & the site is on a subdomain.
  • The page is only visible to authenticated users of certain roles.
  • I get page not accessible message & link to login using saml
  • When I click on login, I get redirected to the configured URL (which goes to https://sso.example.com).
  • I enter my credentials & I get logged in.
  • After successful authentication, I am again redirected to the homepage.
  • It should take me back to https://subdomain.example.com/articles/my-artcile

I am still looking into these resources

Regards,
Aniket