azure-activedirectory-library-for-cordova icon indicating copy to clipboard operation
azure-activedirectory-library-for-cordova copied to clipboard

ms adal cordova plugin for ionic 4 not compatible with cordova 9.0 and ios 13.2

Open adeyemosamuel opened this issue 5 years ago • 13 comments

ms adal cordova plugin is currently not working with xcode simulator. Ionic 4 app hangs on splash screen on xcode simulator. Kindly upgrade ms adal cordova plugin for cordova 9.0 and ios 13.2.

adeyemosamuel avatar Dec 10 '19 11:12 adeyemosamuel

ms adal cordova plugin is currently not working with xcode simulator. Ionic 4 app hangs on splash screen on xcode simulator. Kindly upgrade ms adal cordova plugin for cordova 9.0 and ios 13.2.

adeyemosamuel avatar Dec 11 '19 15:12 adeyemosamuel

Currently experiencing the same issue. Any workarounds? Fixes?

Jankowski-J avatar Feb 24 '20 14:02 Jankowski-J

@Jankowski-J Microsoft no longer supports MS-ADAL, you can try using Azure B2C cordova plugin or MSAL.

adeyemosamuel avatar Feb 24 '20 14:02 adeyemosamuel

Thank you for your reply. I will check these out

Pozdrawiam, Jakub Jankowski


From: adeyemosamuel [email protected] Sent: Monday, February 24, 2020 3:25:27 PM To: AzureAD/azure-activedirectory-library-for-cordova [email protected] Cc: JJankowski [email protected]; Mention [email protected] Subject: Re: [AzureAD/azure-activedirectory-library-for-cordova] ms adal cordova plugin for ionic 4 not compatible with cordova 9.0 and ios 13.2 (#214)

@Jankowski-Jhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FJankowski-J&data=02%7C01%7C%7C91b1e3a5c23241c75e8208d7b93564fb%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637181511281819701&sdata=i7aLQzWjnfvAHWypmC2gfd8fcIgtwIP2SEljwqTy%2BOQ%3D&reserved=0 Microsoft no longer supports MS-ADAL, you can try using Azure B2C cordova plugin or MSAL.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzureAD%2Fazure-activedirectory-library-for-cordova%2Fissues%2F214%3Femail_source%3Dnotifications%26email_token%3DAAQLRFGEHJIPGKAOOLVK5VTREPKFPA5CNFSM4JY5IC42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMX7CRQ%23issuecomment-590344518&data=02%7C01%7C%7C91b1e3a5c23241c75e8208d7b93564fb%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637181511281829692&sdata=5C0RAKVOpE9s8%2Fz1J91DGM%2FdY1Q4OEJbzfoiyLqNg50%3D&reserved=0, or unsubscribehttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAQLRFGLV6KF6FUFLROW3XLREPKFPANCNFSM4JY5IC4Q&data=02%7C01%7C%7C91b1e3a5c23241c75e8208d7b93564fb%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637181511281839687&sdata=g0VriOQrm0qY7Hoq0uutdNx266Jm9kTxduLM4MR49lQ%3D&reserved=0.

Jankowski-J avatar Feb 24 '20 14:02 Jankowski-J

@Jankowski-J do you have some news about it? Did you make it work somehow?

lfreneda avatar Mar 31 '20 20:03 lfreneda

I tried Msal (angular) with ionic 5 and it's working only with navigator , the b2c is an entreprise solution for ionic ...

fradali avatar Apr 01 '20 08:04 fradali

I tried Msal (angular) with ionic 5 and it's working only with navigator , the b2c is an entreprise solution for ionic ...

@fradali What do you mean by navigator? Browser?

lfreneda avatar Apr 01 '20 11:04 lfreneda

@lfreneda we found this: https://www.npmjs.com/package/cordova-plugin-ms-adal-fork and used it in our project. Seems to work, but it will not be supported by the creator.

Jankowski-J avatar Apr 01 '20 12:04 Jankowski-J

@Jankowski-J I will check it out, thanks! <3

lfreneda avatar Apr 01 '20 15:04 lfreneda

@lfreneda yes , now I'm trying to find a solution for UiWebView. @Jankowski-J is there any fork where UiWebView is changed with WkWebView ?

GroupeBEL avatar Apr 22 '20 12:04 GroupeBEL

I didn't search for such fork, so I don't know.


From: webteambel [email protected] Sent: Wednesday, April 22, 2020 2:36:07 PM To: AzureAD/azure-activedirectory-library-for-cordova [email protected] Cc: JJankowski [email protected]; Mention [email protected] Subject: Re: [AzureAD/azure-activedirectory-library-for-cordova] ms adal cordova plugin for ionic 4 not compatible with cordova 9.0 and ios 13.2 (#214)

@lfrenedahttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Flfreneda&data=02%7C01%7C%7Cced3463208dc4f8798eb08d7e6b9bb87%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637231557691447621&sdata=N6SFTIErhYeFI3hOOE%2FLvGEKzPreStQI6Hzbao%2FYaqU%3D&reserved=0 yes , now I'm trying to find a fork where UiWebView is changed with WkWebView

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzureAD%2Fazure-activedirectory-library-for-cordova%2Fissues%2F214%23issuecomment-617752384&data=02%7C01%7C%7Cced3463208dc4f8798eb08d7e6b9bb87%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637231557691457626&sdata=t24cUhDO4C9yuQOb6l6nAE3WCdYc0j7SegtPhfTGTGk%3D&reserved=0, or unsubscribehttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAQLRFB5D6EW5GFL23QAXZTRN3QDPANCNFSM4JY5IC4Q&data=02%7C01%7C%7Cced3463208dc4f8798eb08d7e6b9bb87%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637231557691467637&sdata=Sjz9Rz6w9Fosw2rqr7Wah7mqSjX%2B3aMfxUuTvDX9dfw%3D&reserved=0.

Jankowski-J avatar Apr 22 '20 14:04 Jankowski-J

Hi

You can use this forked plugin included the support for Cordova 9 and fix for iOS 13: cordova plugin add cordova-plugin-ms-adal-is-back

Make sure to remove platform and start a clean slate:

cordova platform rm android ios
cordova plugin rm cordova-plugin-ms-adal
cordova plugin add cordova-plugin-ms-adal-is-back
cordova platform add android ios

I've removed the references of UIWebview by updating the ADAL framework to 4.0.7 here. So you won't receive the alert from submitting to App Store

Perroquiet avatar May 07 '20 13:05 Perroquiet

While I am trying to integrate MS-ADAL plugin with ionic 5, I am getting below error.

UI Error : AADSTS9002325: Proof Key for Code Exchange is required for cross-origin authorization code redemption

Console Error: he request body must contain the following parameter: 'client_secret or client_assertion'

We are using below technical specifications for the ionic App.

IONIC: 5

Angular: 9

@ionic-native/ms-adal: 5.27.0

cordova-plugin-ms-adal: 0.10.2

Cordova version : 9.0.0

"msal": "^1.3.3"

image_2020_08_11T17_24_46_996Z

aashish-pixere avatar Aug 12 '20 08:08 aashish-pixere