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.

Unable to run ElectronTestApp (msal-node-samples) with Azure B2C

See original GitHub issue

Library

  • @azure/msal-node@1.0.0-beta.1

Description

I am trying to run a sample project here https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/standalone-samples/ElectronTestApp I set up my MSAL_CONFIG configuration but when I click log in, the page fails to load and I receive a blank page. Going to the source code of the page I was able to get this code from HTML page

<body><noscript><div id="no_js" ><div class="error_container"><div><h1>We can't sign you in</h1><p>Your browser is currently set to block JavaScript. You need to allow JavaScript to use this service.</p><p>To learn how to allow JavaScript or to find out whether your browser supports JavaScript, check the online help in your web browser.</p></div></div></div></noscript><div id="no_cookie" class="no_display"><div class="error_container"><div><h1>We can't sign you in</h1><p>Your browser is currently set to block cookies. You need to allow cookies to use this service.</p><p>Cookies are small text files stored on your computer that tell us when you're signed in. To learn how to allow cookies, check the online help in your web browser.</p></div></div></div></body>

Source

  • Internal (Microsoft)
  • Customer request

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
hectormmgcommented, Feb 11, 2021

@ammritt I’m able to reproduce your issue now. It seems the B2C login page requires cookies and javascript to be enabled wherever they are rendered. I’ve tested enabling javascript on the BrowserWindow object and registering the custom protocol as privileged so cookies are enabled, but no success yet. I’m investigating what other configuration changes need to be made on the sample to support that. I’ll update this issue when I figure it out.

1reaction
hectormmgcommented, Feb 3, 2021

Hey @ammritt ! I haven’t been able to reproduce it yet, but I’ll let you know when I have more information!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to integrate Azure Ad B2C login in my Electron React App?
I tried both and both showed an empty screen after azure login screen is success. Now the question is: what library should i...
Read more >
Error code reference - Azure AD B2C - Microsoft Learn
Error code Message Notes AADB2C90002 The CORS resource '' returned a 404 not found. Hosting the page cont... AADB2C90010 The request does not contain a...
Read more >
Unable to access the Azure B2C Tenant resource despite the ...
Hello,. I am the owner of a subscription and in this subscription I have an B2C Tenant resource, which I also owner. 129628-image.png....
Read more >
Azure AD B2C: Frequently asked questions (FAQ)
Can I use Azure AD B2C to provide social login (Facebook and Google+) into Microsoft 365? Azure AD B2C can't be used to...
Read more >
Whilst creating Azure AD B2C, I am unable to see 'user flows ...
I'm following this guide to setup Azure AD B2C and after registering an app, the guide asks to visit the 'user flow' page...
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