Open Xargas opened 5 years ago
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?
@floriandorau could you please provide details on the issue? E.g. JVM/JDK versions, and maybe code to reproduce?
@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?
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.
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.
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?