microsoft / oauth2-useragent

Microsoft OAuth 2.0 User Agent library for Java. Provides classes to facilitate the implementation of "4.1. Authorization Code Grant" from RFC 6749.
Other
35 stars 22 forks source link

JavaFX WebView does not load login page #44

Open Xargas opened 5 years ago

Xargas commented 5 years ago

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 commented 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?

ForNeVeR commented 5 years ago

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

floriandorau commented 5 years ago

@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 commented 5 years ago

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 commented 5 years ago

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.