File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/main/java/com/esri/samples/map/create_and_save_map Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -118,9 +118,11 @@ public PortalFolder fromString(String string) {
118118 */
119119 void authenticate () {
120120
121- Dialog <OAuthConfiguration > authenticationDialog = new AuthenticationDialog ();
122- authenticationDialog .showAndWait ().ifPresent (configuration -> {
121+ AuthenticationDialog authenticationDialog = new AuthenticationDialog ();
122+ authenticationDialog .show ();
123+ authenticationDialog .setOnCloseRequest (r -> {
123124
125+ OAuthConfiguration configuration = authenticationDialog .getResult ();
124126 AuthenticationManager .addOAuthConfiguration (configuration );
125127
126128 // setup the handler that will prompt an authentication challenge to the user
You can’t perform that action at this time.
0 commit comments