dotnetcadet / assimalign-js-packages

A collection of javascripts & typescript packages results from real world scenarios.
4 stars 3 forks source link

Is brokered authentication supported? #4

Open ryandegruyter opened 3 years ago

ryandegruyter commented 3 years ago

I have an Angular Ionic app using Capacitor 2. The app is wrapped with the Intune SDK and I'm trying to setup authentication via the Microsoft Authenticator app. Does your MSAL capacitor plugin offer support for it?

dotnetcadet commented 3 years ago

@ryandegruyter Sorry for the late reply, hopefully this answer can still be of help. The capacitor plugin does not have any built in components for Intune. Intune is a policy that needs to be configured for device via the SDK provided by Microsoft.

You can find that information here specifically for iOS

In regards to the Microsoft Authenticator App, you need to implement the brokered iOS code which can be found Setting Up Brokered Authentication

NOTE: I will be monitoring this repo more. I had put it on the back burner cause I had not seen to much activity, but will keep a close eye on it now.

ryandegruyter commented 3 years ago

No problem, thank you for responding. Were you able to get this to work for iOS? Because we tried all the steps and followed all MS docs but we still always end up in Safari.

Note: we had a working app with brokered auth with Cordova + ADAL, but we can't seem to get it to work with Capacitor + MSAL. Azure and Intune configuration is set up correctly.

dotnetcadet commented 3 years ago

@ryandegruyter I do currently I have an application working that forces Microsoft Authenticator App to be used if available. Would you be able to share the code that implements the authentication session for you application?

Two Questions:

ryandegruyter commented 3 years ago

That is good news, I will try out your package again, afaik I think I did mess with the promptView parameter. I will keep you posted. We have migrated to Capacitor 3 and I noticed the AppDelegate does not use CAPBridge any longer. Perhaps this will have an impact on the plugin. But for now, I will test on a branch before we upgraded to Capacitor 3.