-
Notifications
You must be signed in to change notification settings - Fork 68
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
Azure login not working - Unable to open the Login popup #86
Comments
@wrobins could you please help on this query |
Hi @ambal1330, Sorry this is giving you trouble! Would you mind sharing what platform you're running (Android or iOS) and any error that MsalInit() is giving you? Thanks for your patience and hopefully we can figure out what's going on! |
@wrobins But in signInInteractive function getting be low error. it is giving that "No configuration has been set yet" |
@wrobins can you help me on this? |
Same issue, msalinit just getting skipped and not getting any errors. |
@ambal1330 can you show the list of plugins used in your cordova project? I think some other plugin is causing the issue. Edit: @wrobins I tested using a sample app installing plugins one by one, I found issue with deeplink plugin if I add the deeplink |
@wrobins I am using plain instance having only below Plugins |
@wrobins please help on this |
Hello, does anyone know the workaround for this issue? |
@a619sachin are you using the current master, or the (quite old) package released on NPM? |
@peitschie I installed using CLI. |
@a619sachin try using master instead: |
@peitschie Okay, will try it. |
@peitschie tried it, still same issue. |
HI All, Any update on this issue. |
No, I used other plugin. That's the only workaround I found. |
@a619sachin What is the another plugin? |
@ambal1330 do you have any allowed intents annotated in your See https://cordova.apache.org/docs/en/11.x/guide/appdev/allowlist/index.html#intent-allow-list To test this (do NOT use this in production, as it allows any url to be launched, which is a security risk!!!!) would be to add something like this in your
If this allows the window to open, you're on the right path, and just need to figure out the right URLs to allow to keep your app secure but still allow login via SSO. |
I modified the java to output the error since it wasn't visible to me anywhere prior, the error I am getting is:
I can confirm the intent is not there in the generated manifest file and I have the generated config in package.json with the hash key, so something is causing the intent to not be added to the manifest file. |
@zailleh are you using cordova or capacitor? |
@peitschie I'm using cordova. I confirmed what @a619sachin said about That plug-in's Due to another bug in that plugin I discovered recently with a dependancy issue, I've forked it and I'm putting in a fix for it in our version that only removes intents from the |
HI,
We have created a Cordova app with Framework 7 version 2. Working on enabling Azure MFA authentication, Installed the Codova-plugin-msal. Given below configuration. Gave the tenent_id, cliend_id & Signature has value during the plugin installation. Still it is not working MSALInit is not working, Please help me on this .
var defaultOptions1 = {
authorities: [
{
type: 'AAD',
audience: 'AzureADMyOrg',
authorityUrl: '',
cloudInstance: 'MSALAzurePublicCloudInstance',
default: true
}
],
authorizationUserAgent: 'DEFAULT',
multipleCloudsSupported: false,
brokerRedirectUri: true,
accountMode: 'SINGLE',
scopes: ['User.Read']
};
window.cordova.plugins.msalPlugin.msalInit(function() {
alert('msalInit');
},
function (err) {
alert('msalInit' + err);
window.cordova.plugins.msalPlugin.signInInteractive(
function(resp) {
alert(resp);
},
function(err) {
}
);
The text was updated successfully, but these errors were encountered: