mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 20:55:57 +03:00
[GH-ISSUE #436] How to get notified SafariViewController has been dismissed #283
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#283
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 @shaibt on GitHub (Feb 13, 2018).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/436
Description:
Hi,
How do I get notified the user hit "done" on the SF View Controller and never followed through (accept or deny) on the auth process?
I see that
SafariURLHandlerimplementssafariViewControllerDidFinishdelegate function (which is used to cancel pending observers) but the auth process isn't failed nor is the finished event exposed to theOAuth2Swiftobject that initiated the flow.I require this in order to present a specific UI when the user neither accepts or denies the auth request.
OAuth Provider (Twitter, Github, ..):
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
9.0 (Swift 4.0)
9.0 (Swift 3.2)
8.x (Swift 3.x)
8.0 (Swift 2.3)
7.3.1
other: (Please fill in the version you are using.)
objective c
@phimage commented on GitHub (Feb 13, 2018):
you can set a delegate to the
SafariURLHandlerand implementsafariViewControllerDidFinish@shaibt commented on GitHub (Feb 13, 2018):
Oops. Missed that. Thanks for the quick reply!
@shaibt commented on GitHub (Feb 13, 2018):
Works. Thanks again. Maybe worth mentioning in the docs.