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

Plugin does not trigger brokered authentication #77

Open ryandegruyter opened 3 years ago

ryandegruyter commented 3 years ago

Hello, thanks for the great plugin, but for some reason it does not redirect to Microsoft authenticator or company portal to log the user in, any idea why?

export const environment: FCSMEnvironment = {
  ...
  msal: {
    authorities: [
      {
        type: 'AAD',
        audience: 'AzureADMyOrg',
        authorityUrl: 'https://login.microsoftonline.com/xxx.onmicrosoft.com',
        default: true
      }
    ],
    authorizationUserAgent: 'DEFAULT',
    multipleCloudsSupported: false,
    brokerRedirectUri: true,
    accountMode: 'SINGLE',
    scopes: ['xxx-xx-42bb-b5a6-xx/.default']
  },
  ...
};

I followed the iOS setup guide step by step. (https://github.com/AzureAD/microsoft-authentication-library-for-objc#adding-msal-to-your-project)

marutifh commented 3 years ago

Hi @ryandegruyter

I am running into similar issue, did you find any alternative to have broker authentication?

ryandegruyter commented 3 years ago

Hi @marutifh I haven't found a solution as of yet. I will let you know when I do.

aaayush007 commented 3 years ago

Hi @ryandegruyter , did you found out any solution on this, if yes please let me know. I'm also stuck on this. Thanks in Advance !

trpraveenreddy commented 2 years ago

Hi @ryandegruyter Did you find any solution for this? We are running into similar issue?

jeffortdev commented 2 years ago

Is your app wrapped by MAM? https://docs.microsoft.com/en-us/mem/intune/developer/app-wrapper-prepare-ios

ryandegruyter commented 2 years ago

Integrating the SDK instead of using the wrapper did help. Eventually, we decided to go for https://ionic.io/integrations/microsoft-intune plugin, for the support and we don't want to be bothered by platform updates.