mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #341] SFSafariViewController dismisses two times after pressing Done #213
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#213
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 @yjb94 on GitHub (Feb 27, 2017).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/341
Description:
SocialSafariViewController has no other special function dismissing.
here is my logic
i open twitter to auth(with SFSafari) -> i press done(without authentication) -> i open twitter again -> i login to twitter account and finish authorize -> redirects to my app -> the SafariURLHandler dismisses my modal view as well(it occurs dismiss two times)
need fix
OAuth Provider (Twitter, Github, ..):
twitter / instagram
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
[o] 8.0 (Swift 3.0)
8.0 (Swift 2.3)
7.3.1
other: (Please fill in the version you are using.)
objective c
@phimage commented on GitHub (Feb 27, 2017):
You can call on your
SafariURLHandlerthe functionclearObservers(there is also
cancelmethod onOAuthSwiftobject)Must be call automatically by
safariViewControllerDidFinishin OAuthSwiftURLHandlerType, but if there is some issue, you can put a break pointPressing "Done" close the window without passing here?
@phimage commented on GitHub (Jun 4, 2017):
I cannot reproduce it in demo app
I press Done for twitter first time
Then I retry twitter auth, and enter my user credential, authorize the app
I have only one dismiss
In demo a
SafariURLHandleris created each time we try to connectthen
SocialSafariViewControlleris unknown for me, you overrideSFSafariViewController?I close. I will reopen if more information