Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MattCampbell801 opened this issue Mar 4, 2021 · 0 comments
Open

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

MattCampbell801 opened this issue Mar 4, 2021 · 0 comments

Comments

@MattCampbell801
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant