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

feat: update oauth1.a flow #1382

Merged
merged 3 commits into from
Jan 19, 2024
Merged

feat: update oauth1.a flow #1382

merged 3 commits into from
Jan 19, 2024

Conversation

kangmingtay
Copy link
Member

@kangmingtay kangmingtay commented Jan 19, 2024

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 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.

@kangmingtay kangmingtay requested a review from a team as a code owner January 19, 2024 06:59
@kangmingtay kangmingtay changed the title fix: update oauth1.a flow feat: update oauth1.a flow Jan 19, 2024
@kangmingtay kangmingtay merged commit 4f39d2e into master Jan 19, 2024
2 checks passed
@kangmingtay kangmingtay deleted the km/fix-oauth1-flow branch January 19, 2024 07:22
Copy link
Contributor

🎉 This PR is included in version 2.138.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

uxodb pushed a commit to uxodb/auth that referenced this pull request Nov 13, 2024
## 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.
LashaJini pushed a commit to LashaJini/auth that referenced this pull request Nov 13, 2024
## 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.
LashaJini pushed a commit to LashaJini/auth that referenced this pull request Nov 15, 2024
## 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants