Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit 7c66072

Browse files
committed
gh-2964 Fix Shell Commands unavailable when starting with no security details
1 parent 01a6e5b commit 7c66072

File tree

2 files changed

+3
-12
lines changed
  • spring-cloud-dataflow-server/src/main/resources
  • spring-cloud-dataflow-shell-core/src/main/java/org/springframework/cloud/dataflow/shell/command

2 files changed

+3
-12
lines changed

spring-cloud-dataflow-server/src/main/resources/application.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,7 @@ info:
1313
# key-store-password: dataflow
1414
# key-password: dataflow
1515

16-
# Basic Authentication:
17-
18-
#security:
19-
# basic:
20-
# enabled: true
21-
# realm: Spring Cloud Data Flow
22-
# user:
23-
# name: your-username
24-
# password: your-password
25-
# role: VIEW, CREATE, MANAGE
26-
27-
# Oauth 2 support:
16+
# Security (Oauth 2):
2817

2918
#security:
3019
# oauth2:

spring-cloud-dataflow-shell-core/src/main/java/org/springframework/cloud/dataflow/shell/command/ConfigCommands.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ public String target(
229229
targetPassword = userInput.prompt("Password", "", false);
230230
}
231231

232+
this.targetHolder.setTarget(new Target(targetUriString, targetUsername, targetPassword, skipSslValidation));
233+
232234
if (StringUtils.hasText(credentialsProviderCommand) && authenticationEnabled) {
233235
this.targetHolder.getTarget().setTargetCredentials(new TargetCredentials(true));
234236
final CheckableResource credentialsResource = new ProcessOutputResource(credentialsProviderCommand.split("\\s+"));

0 commit comments

Comments
 (0)