-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
MSAL for Angular not working in IE 11 #414
Comments
@BenBullock1992 IE support was only added for MSAL.js and not for angular wrappers. It's a known issue and we are working on the fix. We will release it soon. |
@nehaagrawal - Thank you for letting me know. Do you have an ETA and/or possible workaround? |
Thanks @nehaagrawal! If I can help in any way, please let me know 😀👍 |
@nehaagrawal, did you make any progress on this? |
@nehaagrawal - any update on this please? |
Just wondering if there is any update on this issue as well? |
@nehaagrawal any progress on this issue? |
@BenBullock1992 @Weschk I was on leave and just checking back this issue. I apologize for the delay. I will get back to you on this soon. |
@nehaagrawal Any update on this? |
@nehaagrawal Any updates or ETA for this issue ? |
please, and thank you for your time. |
I'm having the same issue. ETA would be great. Could this be a build error with webpack and es5? |
Hi @nehaagrawal. Is there an ETA of when a fix will be provided? If it is not soon then we will have to search for another alternative. Please let us know. |
I think I found the issue. The fix is currently working for me. There maybe a better fix, but it works NOW! Fix: Steps
|
Hi @DeanB2015...Thank you for the instructions that you provided...it did work for IE 11 but it does not work for Microsoft Edge (see attached image that I captured). Also, do you know when a new release will be available to us so that we do not have to copy the contents of the lib-es6 to the node-modules@azure\msal-angular\dist folder? |
@ddbardsley What version of Edge are you using? |
@DeanB2015 Here is the information that you requested: Microsoft Edge 42.17134.1.0 Microsoft EdgeHTML 17.17134 |
@DeanB2015 Do you know when a new release will be available to us so that we do not have to copy the contents of the lib-es6 to the node-modules@azure\msal-angular\dist folder? |
@ddbardsley I too am getting an error using I created a basic Angular 7 project to test @azure/msal-angular. https://github.com/217Wilder/msal_onenote_api_azure_lab. Unfortunately, this is not an Angular issue. The problem is with the way the msal framework has been written. not great when I see |
@ddbardsley I don't know when a release will be available. @navyasric & @nehaagrawal Thoughts on possible updates to the MSAL framework? Any help is greatly appreciated. |
Any news on this? Why is this issue being marked as an enhancement? If, as explained by @DeanB2015, the module is not compiled correctly, it means that this is a bug not an enhancement. Any idea of how to use the workaround on an automated pipeline? |
We need to have this fixed as well, the workaround is not really suited for our build pipeline |
@navyasric & @nehaagrawal please provide all of us with an update as to when an updated release will be provided to fix the inability to use the IE browser with your currently released version. |
@navyasric & @nehaagrawal We are also running into the same issue. An update on this issue would be highly appreciated. |
@navyasric @nehaagrawal We are also waiting for this fix, any update would be very appreciated. |
@vbucchar I fixed this issue by making rest call from angular by myself and got rid of graph library. |
@jasonnutter what version of msal needs to be installed to use this with @azure/[email protected] ? |
The beta is only compatible with version 0.2.2 of |
I'd really prefer not to do this, but I guess if that's the only work-around I'll have to. |
@jasonnutter So above you show calling 'isIE' - the compiler throws errors when attempting to call a function as you have shown.
|
@sgentile Yeah, that was my mistake, I'll update shortly. (We may also decide to put that check into the library itself, so that you don't have to.) |
I was going to suggest that... |
My biggest issue right now is trying to debug in IE11. I get in an infinite loop with this error . Token Renewal Failed | Token renewal operation failed due to timeout Only happens in IE11 and localhost. But I can't even test my app with IE11 at this point... Error is . '"AADSTS50058: A silent sign-in request was sent but none of the currently signed in user(s) match the requested login hint.' |
Solved my own issue for those interested... had to add https://login.microsoftonline.com to trusted sites in IE... what a PITA |
@jasonnutter |
@chr1soscl Are there errors in the console? Which browser? |
@sgentile Yeah, that's a known issue, unfortunately. |
@jasonnutter no errors in the console, it simply redirects me to the landing page without login popup and I am getting a token and user information, seems like it is authenticating. Browser is Chrome. |
@jasonnutter ok.. can i upgrade this library now or is there any more issues to be fixed yet. |
@chr1soscl I think I was able to reproduce the issue you were seeing (the guard not prompting for login), will have a fix soon. |
If you were having issues with the guard not prompting for login, please try version We'll release |
Hi @jasonnutter now I am getting the popups properly in Chrome, I am able to login normal, in IE when I try to login, it opens the app page in the popup and then it opens a new popup to login again and if I login it continues opening new popups in a loop. |
@chr1soscl It is a known issue that popups do not work properly with our library for IE11, so our guidance is to use the redirect flow when users are on IE (set |
Hi @jasonnutter , I have just upgraded my MSAL-angular app to "0.1.4-beta.2". I have also set the storeAuthStateInCookie correctly and am already using the redirect flow (not popups). I have also set the build target to es5. I have also added the following to TrustedSites (my app URL, login.microsoftonline.com and even the url of my web api). Whilst I now have the site displaying in IE11 (and Edge) - I still get the looping authentication issue. I only see the login once so I think it is related to the Iframe. Interestingly if you kill the browser (IE or Edge) once logged in and after the looping redirects to login BUT before the looping error shows then restart the browser – your credentials are still cached so don’t get redirected to the login and the looping does not begin. From there you can use the site as intended. That’s how I was able to test the other functionality in IE. Have you any suggestions? This is so close now. I am developing an app for organisations whose policies still mandate IE or Edge and ban Chrome, FF etc. Not being able to use MSAL in a modern Angular app is really causing issues. Thanks for the good work so far. |
@stownend Thanks for that info, I'll take a look. |
@stownend I'm having trouble reproducing the behavior you describe. Do you have a sample project you can share? If you don't want to post it publicly you can email me at [email protected], thanks! |
I installed the [email protected] and that seems to work from localhost4200: but when I deploy the build version to our staging app service in azure it wont login it just keeps redirecting back to the ms login page. Not sure why it works locally but redirects in azure. |
@stevehougom Do you have |
I just added the following and its working now!
const isIE = window.navigator.userAgent.indexOf("MSIE ") > -1 || window.
navigator.userAgent.indexOf("Trident/") > -1;
cacheLocation : "localStorage",
storeAuthStateInCookie: isIE
Thanks Jason!
…On Thu, Sep 5, 2019 at 3:16 PM Jason Nutter ***@***.***> wrote:
@stevehougom <https://github.com/stevehougom> Do you have
storeAuthStateInCookie set to true for IE? e.g. #414 (comment)
<#414 (comment)>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#414?email_source=notifications&email_token=AMGVI5U6OJZA4TWX2U5XSRTQIFSJPA5CNFSM4FSNLT32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6ATYZY#issuecomment-528563303>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMGVI5VPUAQZXPTAPJCXASLQIFSJPANCNFSM4FSNLT3Q>
.
|
Version |
I'm submitting a...
Browser:
Library version
The text was updated successfully, but these errors were encountered: