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

preference value not resolving but set in package.json #75

Open MattCampbell801 opened 3 years ago

MattCampbell801 commented 3 years ago

Hi there,

I'm getting the following issue and my thinking is that for some reason the preference values are not resolving: Sign-in error

image

(in case the image doesn't show) Application with identifier '$CLIENT_ID' was not found in the directory 'myDirectory'

I successfully get directed to Azure. I then submit my credentials. I then get the above error.

Android config.xml

<feature name="MsalPlugin">
  <param name="ios-package" value="MsalPlugin"/>
  <param name="onload" value="true"/>
  <preference name="tenantId" value="$TENANT_ID"/>
  <preference name="clientId" value="$CLIENT_ID"/>
</feature>

iOS config.xml

  <feature name="MsalPlugin">
    <param name="ios-package" value="MsalPlugin"/>
    <param name="onload" value="true"/>
    <preference name="tenantId" value="$TENANT_ID"/>
    <preference name="clientId" value="$CLIENT_ID"/>
  </feature>

package.json

  "cordova": {
    "plugins": {
      "cordova-plugin-msal": {
        "TENANT_ID": "XxxxXXXXXXxx",
        "CLIENT_ID": "YYYyyyyYYYy",
        "KEY_HASH": "hash=" 
      }
    }
  }

Any help would be really appreciated thanks!