Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

JavaFX WebView does not load login page #44

Open
Xargas opened this issue Jan 3, 2019 · 5 comments
Open

JavaFX WebView does not load login page #44

Xargas opened this issue Jan 3, 2019 · 5 comments

Comments

@Xargas
Copy link

Xargas commented Jan 3, 2019

Using the JavaFX provider, the webpage of the login page with the corresponding client_id for authentication is not shown/loaded to display.
The WebView in JavaFX works in principle (tests with other URLs like https://login.microsoftonline.com), but gives a white web page for the page where the actual login prompt is expected.

Does someone know a workaround?

@floriandorau
Copy link

Any updates on this topic? We are facing a similar issue. Seams to work perfect on Mac but not on Windows.

Can someone may help?

@ForNeVeR
Copy link

ForNeVeR commented Jun 5, 2019

@floriandorau could you please provide details on the issue? E.g. JVM/JDK versions, and maybe code to reproduce?

@floriandorau
Copy link

@ForNeVeR We're using version 0.11.13 of oauth2-useragent and Java in version 1.8.0_192. I'll see, if I get some code where you could reproduce it.

Is there a way to get some logging out of the startet WebView?

@ForNeVeR
Copy link

ForNeVeR commented Jun 6, 2019

This is a long and complex story, AFAIK there's no easy way to get the logs, and I even wasn't able to debug the JavaFX process.

To show the authentication window, this library starts another Java process that shows the UI, so it's hard to debug sometimes.

There're "easier", more debuggable programs to reproduce the authentication troubles, see here (the attached progams will show empty screen on the broken JRE versions and will show the proper authentication window on "unbroken" JRE versions).

Currently we think that this is an artifact of the (recently fixed) JDK/JavaFX issue JDK-8219917.

@floriandorau
Copy link

I created a sample project which is not fully working right now but shows the issue we have.

When running it on Mac the login window pops up and shows an error message from Microsoft. Fine for now. When running this on Windows nothing really happens. I only see a blank page.

I'll try this again with the fix JDK you mentioned.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants