I was able to resolve this issue by editing this file : https://github.com/catalyst/moodle-auth_saml2/blob/master/config/authsources.php
line 43: $idp = md5($idpentity->entityid); Replace it with $idp = $idpentity->entityid;
line 43: $idp = md5($idpentity->entityid); Replace it with $idp = $idpentity->entityid;