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

Consent: deduplicate user authenticated clients during logout. #1531

Merged
merged 1 commit into from
Aug 20, 2019

Conversation

genchilu
Copy link
Contributor

@genchilu genchilu commented Aug 17, 2019

Related issue

Proposed changes

I adjust ListUserAuthenticatedClientsWithFrontChannelLogout & ListUserAuthenticatedClientsWithBackChannelLogout, make it return unduplicated clients.

If one user login client A 100 times, and then logout after the latest login, it would send 100 requests to the front/backchannel of client A with the logout token with the same sid. It's a waste of performance to both Hydra and client A.

Checklist

  • I have read the contributing guidelines
  • I have read the security policy
  • I confirm that this pull request does not address a security vulnerability. If this pull request addresses a security
    vulnerability, I confirm that I got green light (please contact [email protected]) from the maintainers to push the changes.
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation within the code base (if appropriate)
  • I have documented my changes in the developer guide (if appropriate)

Further comments

@genchilu
Copy link
Contributor Author

genchilu commented Aug 17, 2019

That's strange of the message of the failure test is:
Could not connect to database: parse mysql://root:test@(localhost:3306)/mysql?parseTime=true: invalid port ":3306)" after host

@aeneasr
Copy link
Member

aeneasr commented Aug 17, 2019 via email

@aeneasr
Copy link
Member

aeneasr commented Aug 19, 2019

This is now fixed on master - could you please rebase?

@aeneasr
Copy link
Member

aeneasr commented Aug 20, 2019

Awesome - thank you!

@aeneasr aeneasr merged commit a2f5724 into ory:master Aug 20, 2019
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