-
Notifications
You must be signed in to change notification settings - Fork 397
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## What kind of change does this PR introduce? * Previously, we needed to check if the request token generated matches the oauth token returned in the callback to prevent replay attacks. * However, this is mitigated by verifying the `state` jwt query param on the callback. * The [oauth1.a spec](https://oauth.net/core/1.0a/#auth_step1) also doesn't mention that the consumer needs to verify that the request token matches the oauth token returned in the callback * This also fixes issues where the `_gotrue_session` cookie is not being sent on the callback, which results in "session could not be found for this request" error.
- Loading branch information
1 parent
9ca6970
commit 4f39d2e
Showing
5 changed files
with
3 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.