AzureAD / azure-activedirectory-library-for-objc

The ADAL SDK for Objective C gives you the ability to add support for Work Accounts to your iOS and macOS applications with just a few lines of additional code. This SDK gives your application the full functionality of Microsoft Azure AD, including industry standard protocol support for OAuth2, Web API integration with user level consent, and two factor authentication support.
MIT License
177 stars 113 forks source link

Use WKWebview instead of UIWebView #1203

Open flo-bk opened 6 years ago

flo-bk commented 6 years ago

Hello @oldalton In a previous issue you have mentionned the WKWebView, I really need to use it instead of the UIWebview (in order to implement WKProcessPool). I've tried to update the library but it doesn't work. (the webview is never displayed)

Do you have by chance any advise to help us ?

Many thanks for your help.

oldalton commented 6 years ago

Hi, we're currently working on adding WKWebView ourselves. You can see some work in progress here: https://github.com/AzureAD/microsoft-authentication-library-common-for-objc/tree/dev and in open PRs. I'd recommend for you to wait for ADAL to have an update with WKWebView instead of trying to work it around yourself. I think the main problem you're hitting is that WKWebView doesn't support custom NSURLProtocol, so the SDK really has to be rebuilt to use it.

flo-bk commented 6 years ago

Hi, Thank you very much. Kind regards,

oldalton commented 5 years ago

Hi. Please try our ADAL 4.0.0 release which supports WKWebView.