Skip to content

Conversation

@mig5
Copy link
Contributor

@mig5 mig5 commented Jun 3, 2022

Fixes #116

This adds functions that support back-channel logout.

With this, an implementor can evaluate verifyLogoutToken() and if true, proceed with the developer's application-specific technique for ending the subject's session in the RP. (How that is done is left up to the developer, per the OIDC spec. In my case it involves checking server-side for an existing session based on the sid received in the back-channel logout token, and destroying it if found. Working great for my needs)

I borrowed some of this code from an existing fork of this project, which I discovered by chance whilst browsing the 'downstream' forks. I guess it was never contributed back: https://github.com/dptsi/php-openid-connect-client/blob/master/src/OpenIDConnectClient.php#L1989-L2049

Please use this part of the spec to check the validation is correct: https://openid.net/specs/openid-connect-backchannel-1_0.html#Validation

  • Changelog entry is added

@mig5 mig5 mentioned this pull request Jun 3, 2022
@DeepDiver1975 DeepDiver1975 merged commit 7883f6c into jumbojett:master Sep 28, 2022
DeepDiver1975 added a commit that referenced this pull request Sep 28, 2022
DeepDiver1975 added a commit that referenced this pull request Sep 28, 2022
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.

Back-Channel Logout

2 participants