0

We have XF iOS app, where user logins via ADAL library to access API endpoints behind Azure AD. We need to open url in web-view (that is also behind Azure AD) and handle authentication automatically. Tried to use default webview control, that allows to set request headers for each request for authentication (since ADAL requires to get token for each resource): via custom NSUrlProtocol and NSUrlConnectionDataDelegate. It worked, but website is quite heavy and performed really bad in webview.

After we switched to SFSafariViewController - performance is great, but we can't handle authentication. So users need to login explicitly.

The question is: is there any way to handle authentication automatically via SFSafariViewController?

Mykhail Galushko
  • 515
  • 2
  • 5
  • 14

0 Answers0