mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #182] State not being checked after response #111
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#111
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mats-claassen on GitHub (Feb 11, 2016).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/182
I am trying to connect to Linkedin. After requesting authorization they return a
codeand astate. Thecodeis used to get the access token but it is not being checked (or at least I did not find it) if thestatematches the one send in the first request.@phimage commented on GitHub (Feb 21, 2016):
I think you are right (and must be check to prevent CSRF)
http://tools.ietf.org/html/draft-ietf-oauth-v2-26#section-10.12
@phimage commented on GitHub (Feb 21, 2016):
added a check about state value when receiving a
codedon't know if all case is supported : i read some info here http://spring.io/blog/2011/11/30/cross-site-request-forgery-and-oauth2
add a var
allowMissingStateCheckto remove this check in case of some problem in provider oauth protocol