Quantcast
Channel: Java – Digital Explorations Log
Viewing all articles
Browse latest Browse all 9

Retrieve OAuth 2.0 authorization code using JavaFX WebView

$
0
0

This post documents a snippet of code that can be added to Browser class in JavaFX WebView sample, to extract OAuth 2.0 authorization code.

Assuming you’ve configured WebView’s WebEngine to load the authorization URL, the authorization service will redirect you to the redirect_uri specified in the authorization URL, after a user logs in successfully. It will pass along the code parameter, that can be extracted as follows


Filed under: Java, Security

Viewing all articles
Browse latest Browse all 9

Latest Images

Trending Articles



Latest Images