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.

Upgrade to latest msal/browser library breaks this sample

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

Upgrade current sample to latest version of msal-browser npm install @azure/msal-browser @azure/msal-angular@latest

Click Login In Button and log in - F12 and look at console window - it has an error when trying to get the claims.

Any log messages given by the failure

core.js:6210 ERROR ClientAuthError: access_token_entity_null: Access token entity is null, please check logs and cache to ensure a valid access token is present. at ClientAuthError.AuthError [as constructor] (http://localhost:4200/vendor.js:130540:20) at new ClientAuthError (http://localhost:4200/vendor.js:130792:24) at Function.ClientAuthError.createAccessTokenEntityNullError (http://localhost:4200/vendor.js:131129:12) at Function.<anonymous> (http://localhost:4200/vendor.js:135387:35) at step (http://localhost:4200/vendor.js:130119:19) at Object.next (http://localhost:4200/vendor.js:130049:14) at http://localhost:4200/vendor.js:130021:67 at new ZoneAwarePromise (http://localhost:4200/polyfills.js:2387:23) at __awaiter$1 (http://localhost:4200/vendor.js:130000:10) at Function.ResponseHandler.generateAuthenticationResult (http://localhost:4200/vendor.js:135349:12)

Expected/desired behavior

Shows table with claims detail in the home.component.html file

Browser and version?

Google Chrome Version 90.0.4430.93

Versions

This is in the project - “ms-identity-javascript-angular-tutorial/1-Authentication/2-sign-in-b2c/”

Mention any other details that might be useful


Thanks! We’ll be in touch soon.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
profteckcommented, May 14, 2021

Thanks a mill. Your samples really do help me to understand the concepts.

0reactions
derisencommented, May 13, 2021

@profteck thanks for catching this! Will get this fixed in PR asap.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Code broken after upgrade from "@azure/msal-browser": "2.0 ...
Issue 1. After upgrading to the latest beta it seems that the typescript type TokenExchangeParameters is no longer exported. What is it replaced ......
Read more >
Issues on Internet Explorer & Microsoft Edge (MSAL.js)
Learn about know issues when using the Microsoft Authentication Library for JavaScript (MSAL.js) with Internet Explorer and Microsoft Edge ...
Read more >
@azure/msal-browser - npm
A vanilla JavaScript sample showing basic usage of the MSAL 2.0 library ( @azure/msal-browser package) with the Microsoft Graph API. npm start ...
Read more >
Does MSAL 2.*.js works with IE 11? - Stack Overflow
In short: yes. MSAL 2.0 supports IE. It does, however, need a Promise polyfill to do so, which it doesn't include. What browsers...
Read more >
msal | Yarn - Package Manager
Microsoft Authentication Library for JavaScript (MSAL.js) ... running in a web browser, to authenticate users using Azure AD work and school accounts (AAD), ......
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