Unable to run ElectronTestApp (msal-node-samples) with Azure B2C
See original GitHub issueLibrary
-
@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:
- Created 3 years ago
- Comments:10 (7 by maintainers)
Top GitHub Comments
@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.Hey @ammritt ! I haven’t been able to reproduce it yet, but I’ll let you know when I have more information!