SAML2 redirect logic

SAML2 redirect logic

Stephen Tod發表於
Number of replies: 0

We would like to integrate the SAML2 SSO (https://moodle.org/plugins/auth_saml2) plugin with an IdP.

Our system has a guest user access with the front page for the guest and a list of courses, accessible for these guest.

When the user logins from the front page of Moodle through the SSO he lands on his Moodle dashboard.

But if he comes as a guest from a course enrolement page FOR example ourmoodlesite.com/enrol/index.php?id=8, he should land back to the same page after the sso through the IdP. Currently he lands back on his Moodle dashboard after successiful login. 

We found that the relay state should be set in the simpleSAMLphp library, but changing it there, does not affect anything. Trying manually to set the relay state in the url as part of the login works. 

Any suggestions? 

Thanks in advance. 

評比平均分數: -