Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add login_hint as method to identify end-user in signOut #277

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

piuma
Copy link

@piuma piuma commented Nov 4, 2021

Some identity manager like as Keycloak doesn't support login_hint_token to identifying the end-user. I add "login_hint" method in signOut() function

Comment on lines +312 to +313
if ($this->getState() == "")
$this->setState($_REQUEST['state']);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This happens when the session does not contain the state.

Does this introduce security issues?
It looks to me that it is now possible to reload the page with the ?code=<somecode>&state=<some state>. Instead that it was normally not possible because the state was unset.

Maybe the specs says something about this?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should for sure not do this - if the session does not hold the necessary values there is something broken.

Same for the nonce below

Comment on lines +312 to +313
if ($this->getState() == "")
$this->setState($_REQUEST['state']);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should for sure not do this - if the session does not hold the necessary values there is something broken.

Same for the nonce below

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.

None yet

4 participants