Replies: 1 comment 3 replies
-
You don't have to link |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to integrate my
Ionic/Capacitor
app with Microsoft Authentication Library (Msal), and unfortunately I couldn't found any Capacitor plugin for that, only found this Cordova plugin with its Ionic wrapper.So I've followed the instructions of how to use Cordova plugins with capacitor according with the instructions of the plugin itself, but unfortunately with no success.
The problem is in the cordova plugin not being executed:
cordova.exec(successCallback, errorCallback, 'MsalPlugin', 'msalInit', [JSON.stringify(options)]);
because
cordova.js
is not exist. Although I added thecordova.js
andcordova_plugin.js
inindex.html
, but still thecordova.js
file is empty when usechrome://inspect
.Also
cordova.js
is exist inandroid\app\src\main\assets
but it seems like it's an old version that is not containing the methodandroidExec()
which is being called when try on anotherIonic/Cordova
app. But even this version not exist when run application on emulator.The msal Cordova plugin added with commands:
npm i --save cordova-plugin-msal
and
npm i --save ionic-msal-native
Platforms
Android
package.json dependencies:
Capacitor Doctor
npm --version
: 6.14.14node --version
: v14.17.4was i missing something or made something wrong?
Beta Was this translation helpful? Give feedback.
All reactions