Let Done button be optional in SFSafariViewController

Originator:greg
Number:rdar://21806272 Date Originated:13-Jul-2015 08:52 PM
Status:Closed Resolved:
Product:iOS SDK Product Version:Xcode-beta (7A152u)
Classification:Enhancement Reproducible:Not Applicable
 
Summary:
SFSafariViewController is ideal for OAuth authentication tasks in that it does not allow the developer to have access to the DOM (see Craig Hockenberry's blog: http://furbo.org/2014/09/24/in-app-browsers-considered-harmful/). However, using the SFSafariViewController for OAuth is confusing with the Done button in the upper right. With the SFSafariViewControllerDelegate, we can provide a warning if the user taps Done but has not finished the OAuth process (judging by our receiving an access token via URL scheme), but it's out of place nonetheless.

Comments

There are no plans to address this based on the following:

This is not necessarily a good idea since: 1) there is not way to tell if SVC is used for OAuth, what SVC sees is just a URL. 2) this will cause too much confusion for a user since the URL could take very long to load (or not load at all). If user taps the “Done” button we should just honor that and dismiss the view controller.

We are now closing this report.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!