Skip to content

Conversation

bradjones1
Copy link
Collaborator

E.g., to support IdP-initiated single log out.

This patch adds a step to the module bootstrap to assess if a user is logged in to Moodle via SAML module. If so, determine if the user is still logged in to the SP and compare the SessionIndex value we stored on initial login against the value from the SP. If the user is no longer signed in, or the SessionIndex does not match (which should not be a normal condition, but it's an added safety check) then log the user out of Moodle.

@pitbulk
Copy link
Owner

pitbulk commented Jun 10, 2016

NameID is not a required attribute that the IdP sends to the SP, so take this in mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants