Script error on login page "Unable to get property 'reject'".
See original GitHub issueWhich 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
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (6 by maintainers)
Top GitHub Comments
The fix is being rolled-out. this should be completed by tomorrow.
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.