SFAuthenticationSession does not use cookies on real devices

I am using AppAuth-iOS for SSO. Everything works fine on ios 11 simulators, and SSO (cookie sharing) doesn't work on real devices with 11.0.0, 11.0.1, 11.0.2. So is the SFAuthenticationSession broken and is there any known workaround?

+4
source share
1 answer

I also encounter the same problem and, based on my tests and research, yes, it is broken. SFAuthenticationSessions remembers cookies in a single application, but not after restarting the application or between multiple applications (= SSO). I conducted a series of tests with iOS 11.1 beta 1 and Xcode 9.1 beta 1 with the following results:

  • Using SFAuthenticationSession for initial login and during the same application launch using another SFAuthenticationSession to check if login is valid (based on cookies). This is working fine.
  • Restarting the application and then attempting to check the state of the session will not work, indicating that cookies are not saved.
  • Safari ( UIApplication.shared.openURL) SFAuthenticationSession . . Safari SFAuthenticationSession.
  • Safari, , , . , Safari cookie. .

, SFAuthenticationSession, , , .

, , Twitter: https://twitter.com/rmondello/status/887434621989789696. , 5 .

+2

Source: https://habr.com/ru/post/1686902/


All Articles