Skip to content

Commit 24a8ce2

Browse files
committed
changed dialog to be non-blocking
1 parent ec73bd7 commit 24a8ce2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/esri/samples/portal/oauth/OAuthController.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ private void initialize() {
5050
void authenticate() throws Exception {
5151

5252
AuthenticationDialog authenticationDialog = new AuthenticationDialog();
53-
authenticationDialog.showAndWait().ifPresent(configuration -> {
53+
authenticationDialog.show();
54+
authenticationDialog.setOnCloseRequest(r -> {
5455

56+
OAuthConfiguration configuration = authenticationDialog.getResult();
5557
AuthenticationManager.addOAuthConfiguration(configuration);
5658

5759
// setup the handler that will prompt an authentication challenge to the user

0 commit comments

Comments
 (0)