Closed eltonjhony closed 4 years ago
fyi: @oldalton
You can create your own fully custom UI by passing MSAL your web view. See documentation here: https://azuread.github.io/microsoft-authentication-library-for-objc/Classes/MSALWebviewParameters.html#/c:objc(cs)MSALWebviewParameters(py)customWebview
However, it looks like you're using WKWebView configuration with MSAL. We recommend using the default webview configuration instead. Your users might experience extra credential prompts otherwise. Please see more information here: https://docs.microsoft.com/en-us/azure/active-directory/develop/customize-webviews
Hi @oldalton
Thanks for the response!
Is the customWebView
prepared to work with MSALWebviewType.wkWebView
for B2C connections? I tested here and seems to not be working:
let webConfiguration = WKWebViewConfiguration()
let webView = WKWebView(frame: .zero, configuration: webConfiguration)
webViewParameters.webviewType = .wkWebView
webViewParameters.customWebview = webView
We know that is not the recommended solution, but we need to open the screen inside a WKWebView instead of a default web browser to meet UI requirements.
You also need to display that WKWebView somewhere, by either adding it as a subview in code or adding it in the interface builder.
Thank you @oldalton !
Hi,
Is there a way to remove the CANCEL button in the App left item bar?