oauth2 is broken

Anton Tarasov anton.tarasov at jetbrains.com
Thu May 23 15:38:06 UTC 2019


We've faced a problem with broken OAuth 2.0 in WebView. Started to 
appear since at least 8u202 (worked in 8u152) and is still broken in 
JavaFX 12.

Simple reproducer is below. It should display a login page but displays 
nothing instead:

public class Main extends Application {
     public void start(Stage primaryStage) {
         WebView view = new WebView();
         primaryStage.setScene(new Scene(view, 800, 600));
     public static void main(String[] args) {

The problem originally came from MS User Agent lib 
(https://github.com/microsoft/oauth2-useragent) which uses JFX WebView 
to implement OAuth. The code below also shows nothing:

import com.microsoft.alm.auth.oauth.OAuth2Authenticator;

public class Main {
     public static void main(String[] args) {
         OAuth2Authenticator build = new 

Can you please comment, is it a known issue? Are there any solutions?

With regards,

More information about the openjfx-dev mailing list