Moodle and SAML2 SSO Auth plugin loops

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Moodle and SAML2 SSO Auth plugin loops



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.



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 use the example userpass authentication and defined a user like so:


'admin:admin' => array(
'urn:oid:0.9.2342.19200300.100.1.1' => array('admin'),
'idnumber'=> array('123'),
'email' => array('email@admin.nl'),
'firstname' => array('firstadmin'),
'lastname' => array('lastadmin'),
"phone1" => array('admin'),
"phone2" => array('admin'),
"department" => array('admin'),
"address" => array('admin'),
"city" => array('admin'),
"country" => array('admin'),
"description" => array('admin'),
"idnumber" => array('admin'),
"lang" => array('admin'),
"guid" => array('admin'),
'urn:oid:1.3.6.1.4.1.5923.1.1.1.1' => array('globaladministrators'),
),



In Moodle the plugin configuration i set
Username attribute
to
urn:oid:0.9.2342.19200300.100.1.1



Would that not be enough?





Welcome to SO. Your question has quite a few problems: firstly, you need to include your question as text in the body of the question, not in a link; secondly, there's no point posting links to your own machine with host name localhost. See stackoverflow.com/how-to-ask
– Nick
Jul 24 at 14:59


localhost





yeah i am still unsure how to overcome urls beging displayed as links. Pardon me.
– Noud
Jul 25 at 10:20






1 Answer
1



Fixed by using sql for session.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Arduino Mega cannot recieve any sketches, stk500_recv() programmer is not responding

Visual Studio Code: How to configure includePath for better IntelliSense results

C++ virtual function: Base class function is called instead of derived