We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec73bd7 commit 24a8ce2Copy full SHA for 24a8ce2
src/main/java/com/esri/samples/portal/oauth/OAuthController.java
@@ -50,8 +50,10 @@ private void initialize() {
50
void authenticate() throws Exception {
51
52
AuthenticationDialog authenticationDialog = new AuthenticationDialog();
53
- authenticationDialog.showAndWait().ifPresent(configuration -> {
+ authenticationDialog.show();
54
+ authenticationDialog.setOnCloseRequest(r -> {
55
56
+ OAuthConfiguration configuration = authenticationDialog.getResult();
57
AuthenticationManager.addOAuthConfiguration(configuration);
58
59
// setup the handler that will prompt an authentication challenge to the user
0 commit comments