mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #249] Google Drive example fails with missing state error #143
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#143
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 @iby on GitHub (Jul 8, 2016).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/249
Using
responseType = "token"works, but the originalresponseType = "code"fails withMissing stateerror. Need to usecodetype in order to get refresh token, base on the playground notes.@phimage commented on GitHub (Jul 8, 2016):
maybe this could work by setting
allowMissingStateCheckto true (if state missing)let me know
@iby commented on GitHub (Jul 8, 2016):
Yep, it works, but
refresh_tokenin credentials provided as an empty string. Any ideas why would that be?@phimage commented on GitHub (Jul 8, 2016):
Did we pass in the code defined bellow in OAuthSwift2 (code which affect the refresh token
@iby commented on GitHub (Jul 8, 2016):
Yes, there is that check in the code. Apparently must provide additional parameters
approval_prompt=force&access_type=offline– they are used in the playground andaccess_typeis reported to be the one that enforcesrefresh_tokenbeing sent with the response.