dmirandaa / moodle-auth_saml2sso

Moodle plugin for authentication using a SimpleSAMLphp Service Provider
https://moodle.org/plugins/auth_saml2sso
0 stars 6 forks source link

Moodle and SAML2 SSO Auth plugin loops #21

Closed noud closed 6 years ago

noud commented 6 years ago

i am not sure if i should file this issue, it is more of a configuration problem i guess.

Moodle 3.5.1 plugin auth_saml2sso_moodle35_2018051500.zip

question: i guess i have the same error as Naaman Fallouh at https://moodle.org/plugins/auth_saml2sso (comments page 2)

i am able to login with phpBB/SAML and have http://moodle.localhost/ and http://moodle.localhost/simplesaml I am able to login using http://moodle.localhost/simplesaml I am able to login using http://moodle.localhost/ but after the login i get stuck in a loop:

http://saml_idp.localhost/simplesaml/saml2/idp/SSOService.php?SAMLRequest=chars&RelayState=http%3A%2F%2Fmoodle.localhost%2Flogin%2Findex.php (saml_idp.localhost is indeed my idp)

over and over again, with every time other value for chars. the idp does login, redirects to http://moodle.localhost/login/index.php again and that does contact the idp again, over and over.

I did set in http://moodle.localhost/simplesaml/config/config.php 'session.phpsession.cookiename' => 'MoodleSession',

That is the only difference from the phpbb3.localhost/simplesaml/config/config.php.

What else could be wrong? What's your first thought i should look at?

I did also put the question at https://stackoverflow.com/questions/51498285/moodle-and-saml2-sso-auth-plugin-loops

thank you.

noud commented 6 years ago

Forget about this, i used sql for session and now all is fine.