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

fix: Always store provided state in transient medium #674

Merged
merged 12 commits into from
Nov 28, 2022

Conversation

evansims
Copy link
Member

Changes

This PR addresses a bug reported in #673 by @winstoncl in which: if a state value is provided by the host applications upon calling login(), it was not being properly stored within the given transient medium for comparison later (upon calling exchange() on the return trip.) This caused an Invalid State exception to be raised.

References

Resolves #673

Testing

Run composer test or see GitHub status checks on this PR.

Contributor Checklist

@evansims evansims added this to the 8.3.8 milestone Nov 28, 2022
@codecov-commenter
Copy link

codecov-commenter commented Nov 28, 2022

Codecov Report

Base: 94.29% // Head: 94.22% // Decreases project coverage by -0.06% ⚠️

Coverage data is based on head (e1aff02) compared to base (0533f80).
Patch coverage: 89.74% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #674      +/-   ##
============================================
- Coverage     94.29%   94.22%   -0.07%     
- Complexity     1282     1285       +3     
============================================
  Files            65       65              
  Lines          4187     4190       +3     
============================================
  Hits           3948     3948              
- Misses          239      242       +3     
Impacted Files Coverage Δ
src/Auth0.php 97.26% <89.74%> (-1.01%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@evansims evansims marked this pull request as ready for review November 28, 2022 20:20
@evansims evansims requested a review from a team as a code owner November 28, 2022 20:20
@evansims evansims marked this pull request as draft November 28, 2022 20:21
@evansims evansims marked this pull request as ready for review November 28, 2022 21:17
@evansims evansims merged commit b30bdcb into main Nov 28, 2022
@evansims evansims deleted the fix/store-provided-state-in-session branch November 28, 2022 21:17
github-actions bot pushed a commit that referenced this pull request Nov 28, 2022
…um (#674)

* fix: Always store provided `state` in transient medium

* Test suite fixes; add error handling for odd OpenSSL error in GitHub VM

* Bump Ubuntu version on GitHub VM

* Update checks.yml

* Update checks.yml

* Update TokenGenerator.php

* Update checks.yml

* Update checks.yml

* Update checks.yml

* Update checks.yml

* Update TokenGenerator.php

* Test suite fixes and improvements; PHP 8 language feature adoption
@evansims evansims mentioned this pull request Nov 29, 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.

Provided state breaks the flow with "Invalid state" error
2 participants