onenote icon indicating copy to clipboard operation
onenote copied to clipboard

HTTP Basic Auth dialog not popping up

Open octaroot opened this issue 4 years ago • 9 comments

Hi,

I'm having issues using P3X OneNote with my corporate account. Upon first launch, I got the classic Microsoft sign-in form. I've put in my corporate e-mail address and got redirected to my corporation's sign-in page. Normally, at that moment an HTTP Basic Auth dialog would pop up, but in the P3X OneNote app, it doesn't and I'm stuck on a white screen, with the loaded URL visible in the bottom purple bar.

Is there something I can do about this? Provide logs, perform the auth manually and transfer cookies/tokens etc?

To reproduce:

  1. Try to go through a Microsoft sign in with the account [email protected] via a browser
  2. Observe an HTTP Basic Auth popup, abort the process
  3. Try to sign in via the P3X OneNote app with the account [email protected]
  4. No HTTP Basic Auth dialog present, stuck on a white screen forever

Thanks for your support!

octaroot avatar Oct 15 '19 10:10 octaroot

You can get the OneNote webview console like this:

NODE_ENV=debug ~/opt/P3X-OneNote-2019.10.301.AppImage

p3x-robot avatar Oct 15 '19 10:10 p3x-robot

for me i am stuck here: image

if you can provide a test login you can send me authorization to https://patrikx3.com/contact

maybe i can help, but i am restriced to w webview which is like an iframe and it can be hard, but maybe it is a configuration to electron to allow http basic auth popup

p3x-robot avatar Oct 15 '19 10:10 p3x-robot

ok, there is a https://stackoverflow.com/questions/38511746/electron-basic-auth-pop-up-not-working but i am in a webview i am not sure it will work on the default app.on('login', () => {}) event, maybe on the webview event.

the problem is that i cannot debug for you, unless you provide a test account... the stackoverflow answer is 3 years old, and it is not for a webview as onenote online is working. the problem is that i cannot capture the username/password to pass it to the app and there is another problem that i have a webview which is like a iframe, which is another context and there is security problem.

there is a 1 year old answer but it says it is not working. - https://github.com/leftstick/teams-ubuntu/issues/13

of course they are saying it is possible but unless a test account i have no control like this.

p3x-robot avatar Oct 15 '19 11:10 p3x-robot

https://discuss.atom.io/t/webview-basic-auth/50092

p3x-robot avatar Oct 15 '19 11:10 p3x-robot

i think it is possible to make it to work, but given it is hard to provide a corporate login i cannot debug and implement, the info is here (yes it is possible in a webview/iframe): https://electronjs.org/docs/api/web-contents#event-login

p3x-robot avatar Oct 15 '19 12:10 p3x-robot

I have this same issue. I can't authenticate with my corporate server.

shiolovesgod avatar Feb 03 '20 15:02 shiolovesgod

if you provide a corporate login i could probably fix it, but given i have no corporate access, it is impossible.

p3x-robot avatar Feb 03 '20 15:02 p3x-robot

if you provide a corporate login i could probably fix it, but given i have no corporate access, it is impossible.

Do you have access to a university-provided Office365 account you can test with ? I'm having a similar problem. It shows me my university's own login screen... but it just doesn't accept the login. Works fine in Chrome.. doesn't work in this app.

pawzlion avatar Feb 18 '20 16:02 pawzlion

if you provide a corporate login i could probably fix it, but given i have no corporate access, it is impossible.

Do you have access to a university-provided Office365 account you can test with ? I'm having a similar problem. It shows me my university's own login screen... but it just doesn't accept the login. Works fine in Chrome.. doesn't work in this app.

if you provide a corporate login i could probably fix it, but given i have no corporate access, it is impossible.

p3x-robot avatar Feb 18 '20 17:02 p3x-robot