-
Notifications
You must be signed in to change notification settings - Fork 773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent the use of SFAuthenticationSession? #182
Comments
Hey, In your case, I agree that your best bet will be to use AppAuth doesn't currently support this directly, as we assumed everyone wants SSO with Safari. It's trivial to hack the code, you can just delete these lines: AppAuth-iOS/Source/iOS/OIDAuthorizationUICoordinatorIOS.m Lines 91 to 110 in 83736c9
Here's what I'd recommend: clone AppAuth into your project, e.g. We could add support to AppAuth, but first I would want to validate that a lot of people have this same use-case. Otherwise, I think it's pretty easy for you to customize how you like as a once-off. What do you think? William |
I would also love to see an option to prevent the use of SFAuthenticationSession. |
Hi William and sorry for the delay, That is what I've done first, except I didn't want to fork the library so I've just created in my project a custom implementation of OIDAuthorizationUICoordinator. @hudeldudel I recommend you to do that. But finally SafariViewController wasn't enough because I have also WKWebiews in my app. So I've created another implementation of OIDAuthorizationUICoordinator which only uses WKWebviews. Thanks for your help. |
I also need to prevent the use of |
Good call @borgeser, a custom What I should have recommended rather than forking was to make a copy of the OIDAuthorizationUICoordinatorIOS.h/.m class, and then tweak it as you need. #200 has a code sample of doing an authorization with a non-default UI coordinator. @julienbodet you can use this technique – just create your own |
I need this option as well. To add my opinion on this: |
I would love this too. I forked the AppAuth and removed the unnecessary lines, but that spells trouble, I'd be much better just to have it out of the box. |
Hi,
I'm creating an app with a lot of webviews (I use
SFSafariViewController
). I need to share the cookies between the authentication controller provided by the app and my instances ofSFSafariViewController
.Everything works well on iOS9 and iOS10 but in iOS11 the library is using
SFAuthenticationSession
. I understand the purpose of this class but this class forbids the sharing of cookies in my app.I'd like to know if there is a way to prevent using
SFAuthenticationSession
in the library. Or maybe if there is another way to achieve my wish: sharing cookies between the authentication process and mySFSafariViewController
s.Thanks.
The text was updated successfully, but these errors were encountered: