{"id":10542798,"date":"2018-07-31T07:17:39","date_gmt":"2018-07-31T07:17:39","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=topic&#038;p=10542798"},"modified":"2018-07-31T09:40:12","modified_gmt":"2018-07-31T09:40:12","slug":"loop-issue","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/loop-issue\/","title":{"rendered":"Loop issue"},"content":{"rendered":"<p>Hello,<\/p>\n<p>I installed the shibboleth plugin (v. 2.1.1) on a 4.9.7 wordpress instance and I tried to configure the shibboleth login without success.<br \/>\nI did almost no changes to the default plugin configuration (only auto login plus user configuration). Here is a description of the issue :<\/p>\n<p>&#8211; When I try to login with shibboleth, I am redirected to my IDP for login<br \/>\n&#8211; I selected my institution in the list<br \/>\n&#8211; I enter my credentials and submit them<br \/>\n&#8211; Then I am again redirected to the institution selection list, again and again<\/p>\n<p>Then I tried to dig a little further. First by looking at which URLs are called. I noticed that the URLs n\u00b0 8 to 11 (see below) are called again and again.<\/p>\n<p>I also tried to trace what was happening in the plugin flow. I noticed that when the function &#8220;shibboleth_session_active) is called, the $_SERVER array does not contain any Shibboleth variable (like Shib-Session-ID).<\/p>\n<p>Another strange thing is when I open a new tab, and type in my website address (`https:\/\/test.example.org\/), I am logged in and can then access the wp-admin part. On a new tab, accessing a page with phpinfo, I can see that all shibboleth variables are set.<\/p>\n<p>Could you please help me solving this issue ? Do you have any clue about the cause of this, or if it is a bug ?<\/p>\n<p>Thanks in advance for your answer<\/p>\n<pre><code>\nRequests :\n1) https:\/\/test.example.org\/wp-login.php?redirect_to=https:\/\/test.example.org\/wp-admin\/&amp;action=shibboleth\n2) https:\/\/test.example.org\/Shibboleth.sso\/Login?target=https:\/\/test.example.org\/wp-login.php?action=shibboleth&amp;redirect_to=https%3A%2F%2Ftest.example.org%2Fwp-admin%2F\n3) https:\/\/wayf.example.org\/wayf\/WAYF?entityID=https:\/\/myentityid.org\/shibboleth&amp;return=https:\/\/test.example.org\/Shibboleth.sso\/Login?SAMLDS=1&amp;target=ss%3Amem%3A2307280b9efe5c66780ab65c0994806d06c74981260f1163faaf66b40941b0ca\n4) https:\/\/wayf.example.org\/wayf\/WAYF?entityID=https:\/\/myentityid.org\/shibboleth&amp;return=https:\/\/test.example.org\/Shibboleth.sso\/Login?SAMLDS=1&amp;target=ss%3Amem%3A2307280b9efe5c66780ab65c0994806d06c74981260f1163faaf66b40941b0ca\n5) https:\/\/test.example.org\/Shibboleth.sso\/Login?SAMLDS=1&amp;target=ss:mem:2307280b9efe5c66780ab65c0994806d06c74981260f1163faaf66b40941b0ca&amp;entityID=https:\/\/myidp.org\/idp\/shibboleth\n6) https:\/\/myidp.org\/idp\/profile\/SAML2\/Redirect\/SSO?SAMLRequest=fZLLbsIwEEV\/JfKeOAkIgkWQKCyKRAsitItuKsceGlfGTj1OH39f8yzdsLPke89ojmaEfKcbNml9bdbw0QL66HunDbLDR0FaZ5jlqJAZvgNkXrBy8rBgWZywxllvhdUkmiCC88qaqTXY7sCV4D6VgKf1oiC19w0ySn2AxwggMRTfQfhY1LSsVVVZDb6OES3dszO6WpYbEs1CXhm+x\/5BOFdxa5Ted5VsaEBtlYZTcQ1SuUCmZbkk0XxWkNdePpDDalt1hyD7sp+neXgK2RUyzYUQVYghtjA36LnxBcmSNO8kg0433SQDliSsN3gh0eq06p0yUpm3216qYwjZ\/Waz6hyXeQaHh0VCgIxHe7vsMNhd+b6N5WfJZHy2sbUOs+wiBC8yR\/RqwnFcwx4Dcj5bWa3ETzTR2n5NHXAPBUkJHR8r\/29h\/As=&amp;RelayState=ss:mem:2307280b9efe5c66780ab65c0994806d06c74981260f1163faaf66b40941b0ca\n7) https:\/\/myidp.org\/idp\/profile\/SAML2\/Redirect\/SSO;jsessionid=A86F4275E200AD8B96E9491D6C496E8C?execution=e1s1\n8) https:\/\/test.example.org\/Shibboleth.sso\/SAML2\/POST\n9) https:\/\/test.example.org\/wp-login.php?action=shibboleth&amp;redirect_to=https:\/\/test.example.org\/wp-admin\/\n10) https:\/\/test.example.org\/Shibboleth.sso\/Login?target=https:\/\/test.example.org\/wp-login.php?action=shibboleth&amp;redirect_to=https%3A%2F%2Ftest.example.org%2Fwp-admin%2F\n11) https:\/\/wayf.example.org\/wayf\/WAYF?entityID=https:\/\/myentityid.org\/shibboleth&amp;return=https:\/\/test.example.org\/Shibboleth.sso\/Login?SAMLDS=1&amp;target=ss%3Amem%3Af5644cc9afedbf4ac108e1d319198bfad0ad27b7b65d815ef6e6d73ffdec15ad\n<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-10542798","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10542798","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":2,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10542798\/revisions"}],"predecessor-version":[{"id":10543179,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10542798\/revisions\/10543179"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10542798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}