I am creating an electron app that accesses a url. And when navigated to the URL the user clicks on a button and are redirected to a URL that displays this pop up in Chrome.
What you see on the picture is that Chrome opens a popup for handle authentication event.
However, Electron doesn't make such popup by default, as it stated in the documentation of 'login' event
The default behavior is to cancel all authentications, to override this you should prevent the default behavior with
event.preventDefault()
and callcallback(username, password)
with the credentials.
This means, you should handle 'login' event of your webContents manually and open a popup window by yourself or do whatever you want.