question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Script Error when clicking the link Sign out and sign in with a different account

See original GitHub issue

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

I am using the un-modified Desktop-App-calls-Web-API" TodoListClient and TodoListService" sample configured in my Azure AD tenant per the instructions on github.

I reproduced this both with the Microsoft.Identity.Web v1.4.0 nuget package, which is the one the source code un-modified uses as well as the latest version v1.4.1 of the Microsoft.Identity.Web nuget package

I am using the “Azure AD Free” SKU of Azure AD, however I have also reproduced this using the P2 SKU of Azure AD

  1. Sign in with a valid account in your tenant

  2. Click the “Clear Cache” button

  3. Click the “Sign in” button

  4. Enter the email address of another valid Microsoft account. By Microsoft account I mean an account created using https://account.microsoft.com/account

Note: This account does not have to be in your tenant but if it is in your tenant the account must be added as a Guest account in Azure AD.

  1. Click “Next”
  2. Click the “Sign out and sign in with a different account.” link
  3. Observe the “Script Error” Dialog with the following information An error has occurred in the script on this page. Line: 202 Char: 337 Error: Object doesn’t support property or method attachEvent’ Code: 0 URL: https://login.microsoftonline.com/login.srf? wa=wsignoutcleanup1.0&sid=M.10653612753695256942&iss=h ttps://login.live.com Do you want to continue running scripts on this page?

Any log messages given by the failure

No

Expected/desired behavior

The “Sign in to your Microsoft account” user interface presents the “Enter Password” screen and you are able to login, assuming the account is a valid account in your tenant. If the account is not a valid account in your tenant then the standard error message should appear.

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?) Windows 10

Versions

Version 20H2 (OS Build 19042.685)

Mention any other details that might be useful

This not only happens with the sample code but with custom applications I have built that utilize the MSAL.

If you click the “No” or “Yes” button on the JavaScript error page, typically 2-3 times, the “Sign in to your Microsoft account” screen is presented.


Thanks! We’ll be in touch soon.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Shama-Kcommented, Feb 9, 2021

We have raised an incident with the respective service team and it’s in progress.

1reaction
StephenStaatscommented, Jan 25, 2021

I also started noticing the problem in November 2020.

From: JosephFicara [mailto:notifications@github.com] Sent: Sunday, January 24, 2021 8:15 PM To: Azure-Samples/active-directory-dotnet-native-aspnetcore-v2 Cc: StephenStaats; Mention Subject: Re: [Azure-Samples/active-directory-dotnet-native-aspnetcore-v2] Script Error when clicking the link Sign out and sign in with a different account (#182)

I started seeing this about three months ago, in November 2020. That is when I started the integration work with the MSAL. I don’t know if it existed prior to that.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Azure-Samples/active-directory-dotnet-native-aspnetcore-v2/issues/182#issuecomment-766480308 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOR5CDHSQA3ABIREAL3BKPDS3TAZBANCNFSM4V4VTLTA . https://github.com/notifications/beacon/AOR5CDG4C3MDJZYU6ELNJGTS3TAZBA5CNFSM4V4VTLTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFWXY7NA.gif

Read more comments on GitHub >

github_iconTop Results From Across the Web

This Script error keep popping out when i try to login from ...
This Script error keep popping out when i try to login from my device - Microsoft Community.
Read more >
Script error when loading microsoft login page
Hi there, when I open the Microsoft login page (login.microsoftonline.com) the icons and background images can't be loaded.
Read more >
Getting a script error when trying to log in to apps on server ...
I am getting a Script error when I try to log into any Office 365 product (outlook, word, excel) it is happening to...
Read more >
Scripting error issue while trying to login to ArcGIS Pro.
I received it after clicking on the Google button at the bottom right hand of the login page (with Facebook login on the...
Read more >
Google web app won't run when logged into multiple ...
I am creating a web app using Google Apps Script, and have run into kind of a wall. Sometimes the users using the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found