too many redirections after authentication with saml login

too many redirections after authentication with saml login

by Saurabh Pandey -
Number of replies: 2

Hi Guys,

My application was running from 2 years but now I am getting too many redirection error on my application after saml login. I am able to login with saml=off. I checked from admin saml is authenticated but when I open the page it does not work. 

My page keeps redirecting between login/index.php and user/edit.php. Please suggest why this has been happening. Thanks.

Average of ratings: -
In reply to Saurabh Pandey

Re: too many redirections after authentication with saml login

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

Metadata expiry is the most common cause of SAML authentication suddenly breaking in my experience. Maybe the IdP or SP is signing messages with a certificate which had two years' validity.

Try updating the SP (i.e. Moodle) with the current IdP metadata.

Is the IdP still working with other SPs?

If there are still problems please tell us more about the environment, e.g. the Moodle version and which SAML authentication plugin is in use.

In reply to Leon Stringer

Re: too many redirections after authentication with saml login

by Saurabh Pandey -

Hi, thanks for responding. I have updated metadata. I checked from admin panel with saml plugin test settings, user is authenticated with nameid attribute, But still getting error too many redirections.