Skip to content

Confirm session on auth module init against SP - #31

Open
bradjones1 wants to merge 2 commits into
pitbulk:masterfrom
bradjones1:sp-session-confirm
Open

Confirm session on auth module init against SP#31
bradjones1 wants to merge 2 commits into
pitbulk:masterfrom
bradjones1:sp-session-confirm

Conversation

@bradjones1

Copy link
Copy Markdown
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

pitbulk commented Jun 10, 2016

Copy link
Copy Markdown
Owner

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