Оболочка scdf не удалась с keycloak - PullRequest
0 голосов
/ 21 января 2020

Как пользователь, я хочу использовать jar оболочки для развертывания потоков. Я работаю с безопасностью с keycloak, и, следуя документации, я думаю, что допустимая команда может быть:

java -jar spring-cloud-dataflow-shell-2.3.0.RELEASE.jar --dataflow.uri=http://scdf2-server-data-flow-server:8080 --dataflow.username=dataflow --dataflow.password=<valid-pasword> --dataflow.credentials-provider-command=echo "Bearer <valid token" --dataflow.skip-ssl-validation=true --debug 

Чтение doks, относится к «имени пользователя», и, я не уверен, что пользователь keycloak или клиент. Протестировал их обоих

2.3.0.RELEASE

Welcome to the Spring Cloud Data Flow shell. For assistance hit TAB or type "help".
2020-01-21T14:23:42+0100 DEBUG Spring Shell o.s.w.HttpLogging:147 - HTTP GET http://scdf2-server-data-flow-server:8080/login/security/info
2020-01-21T14:23:42+0100 DEBUG Spring Shell o.s.w.HttpLogging:147 - Accept=[application/json, application/*+json]
2020-01-21T14:23:42+0100 DEBUG Spring Shell o.s.w.HttpLogging:147 - Response 401 UNAUTHORIZED
2020-01-21T14:23:42+0100 DEBUG Spring Shell o.s.w.c.HttpMessageConverterExtractor:102 - Reading to [org.springframework.hateoas.mediatype.vnderrors.VndErrors]
WARNING - Problem connecting to the Spring Cloud Data Flow Server:
"Unable to access Data Flow Server at 'http://scdf2-server-data-flow-server:8080/login': 'org.springframework.web.client.HttpClientErrorException$Unauthorized: 401 Unauthorized'. Unauthorized, did you forget to authenticate?"
Please double check your startup parameters and either restart the Data Flow Shell (with any missing configuration including security etc.) or target the Data Flow Server using the 'dataflow config server' command.

что такое / security / info uri?

...