wrobins / cordova-plugin-msal

Use the newest Microsoft MSAL library in your Cordova-based project!
Apache License 2.0
23 stars 63 forks source link

Add support for overriding the web view used for sign in #54

Closed zbarbuto closed 3 years ago

zbarbuto commented 3 years ago

As per the active directory docs there are a few web views supported in the MSAL iOS version.

The default web view used supports single sign-on (SSO) and shows the " wants to sign in with " permission dialog.

By using either the SafariViewController or WKWebView alternatives, this permission dialog can be avoided. However, when using the WKWebView version, we do sacrifice SSO.

zbarbuto commented 3 years ago

Example usage:

window.cordova.plugins.msalPlugin.signInInteractive(mycbfunction(msg), myerrorfunction(errmsg), {
        webViewType: 'WK_WEB_VIEW'
    }
);
wrobins commented 3 years ago

Thanks for your contribution! I apologize for the delay getting to this - I've been putting in some extra hours lately at my day job and haven't been doing much development outside it. It's rewarding, but definitely been crazy with COVID-related things going on.

zbarbuto commented 3 years ago

No problems thanks for getting back to me in the end 😁