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

Clear transaction data on error #254

Merged
merged 5 commits into from
Oct 29, 2019
Merged

Clear transaction data on error #254

merged 5 commits into from
Oct 29, 2019

Conversation

stevehobbsdev
Copy link
Contributor

Description

This PR fixes #217 by cleaning up the transaction data when an error occurs. As highlighted in #217, a build up of transaction cookies is occuring because this data is not cleared/reset when an error occurs. Customers have reported that in this scenario (when an error is raised) their apps simply retry the authentication step. Over a short period of time, this can cause problems with cookie data becoming too large and breaking applications. This PR helps with that by cleaning up data on error.

References

#217

Testing

  • This change adds test coverage for new/changed/fixed functionality

Checklist

  • I have added documentation for new/changed functionality in this PR or in auth0.com/docs
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used, if not master

@stevehobbsdev stevehobbsdev requested a review from a team October 25, 2019 15:36
@joshcanhelp joshcanhelp requested review from joshcanhelp and removed request for a team October 25, 2019 17:29
Copy link
Contributor

@joshcanhelp joshcanhelp left a comment

Choose a reason for hiding this comment

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

LGTM! One line of functionality and a bunch of lines of tests ❤️

@joshcanhelp joshcanhelp added CH: Changed PR is changing something review:small and removed small labels Oct 25, 2019
@luisrudge luisrudge requested a review from a team October 29, 2019 14:47
@damieng damieng merged commit 9ab1dff into master Oct 29, 2019
@damieng damieng deleted the fix/cookie-pollution branch October 29, 2019 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CH: Changed PR is changing something
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cookie Pollution
4 participants