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 on login page "Unable to get property 'reject'".

See original GitHub issue

Which Version of ADAL are you using ? Note that to get help, you need to run the latest preview or non-preview version For MSAL, please log issues to https://github.com/AzureAD/microsoft-authentication-library-for-dotnet

v2.4.0-preview v2.5.0-preview

Which platform has the issue?

net45

What authentication flow has the issue?

  • Desktop / Mobile
    • Interactive
    • Integrated Windows Auth
    • Username Password
    • Device code flow (browserless)
  • Web App
    • Authorization code
    • OBO
  • Web API
    • OBO

Other? - please describe;

What is the identity provider ?

  • Azure AD
  • Azure AD B2C

Repro

string AppKey = "...My App Key...";

string[] AppScopes =
{
    // Users' scopes
    "User.ReadBasic.All",
    "User.Read",

    // Files' scopes
    "Files.ReadWrite",
    "Files.ReadWrite.All",
};

byte[] tokensStream = null;

var tokenCache = new TokenCache();
tokenCache.SetAfterAccess((TokenCacheNotificationArgs args) =>
{
    if (args.TokenCache.HasStateChanged)
    {
        lock (locker)
        {
            tokensStream = args.TokenCache.Serialize();
        }
    }
});

tokenCache.SetBeforeAccess((TokenCacheNotificationArgs args) =>
{
    lock (locker)
    {
        args.TokenCache.Deserialize(tokensStream);
    }
});

const string DefaultAuthority = "https://login.microsoftonline.com/common/";
var App = new PublicClientApplication(AppKey, DefaultAuthority, tokenCache);

var authResult = await App.AcquireTokenAsync(AppScopes, string.Empty, UIBehavior.ForceLogin, string.Empty);
var accessToken = authResult.AccessToken;

Expected behavior Login Form should work without JScript error.

Actual behavior Call PublicClientApplication.AcquireTokenAsync shows login form with JScript error: “Unable to get property ‘reject’ of undefined or null reference.” Script URL: https://secure.aadcdn.microsoftonline-p.com/ests/2.1.8395.17/content/cdnbundles/oldconvergedlogin_pcore.min_z2qsp8b10e2xrib0uwoksg2.js See screenshot bellow. If user continues execution by pressing “Yes”, login finished with valid access token.

Possible Solution

Additional context/ Logs / Screenshots image-2018-12-10-18-23-06-959

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
jmprieurcommented, Dec 13, 2018

The fix is being rolled-out. this should be completed by tomorrow.

2reactions
jmprieurcommented, Dec 12, 2018

Thanks @23W there is an issue on the service side (AAD Login Page). It’s fixed, but still need to be rolled out. Leaving the issue open until it’s deployed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scripting Error and unable to get property
Method 2: Disable Script Debugging. Perform this method if the issue occurs only in one website in Internet Explorer.
Read more >
VS2013 Account Sign In "Script Error" The Value of ...
I am using Visual Studio 2013 on Windows 8.1, I already sign in with my Live ID. I try to connect to TFS,...
Read more >
Script Error - Power Platform Community - Microsoft
Hello,. I have recently tried to change the appointment form in power aps, so when the appointment was created in the timeline, the...
Read more >
What causes a Script error and how to solve them
Script errors occur when a client-side script that violates the same-origin policy of the user's browser by making an invalid cross-origin HTTP ......
Read more >
How To Fix "uncaught typeerror: cannot set property" Error ...
The "uncaught typeerror: cannot set property" message in JavaScript can have several causes. Find out how to fix the error in this article....
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