我有一个问题,在推送应用程序(scdf 服务器和船长(后,由于身份验证错误而无法启动。这与停止/启动该任务/应用程序的内部 scdf 用户(部署者用户(有关。
在 yml 文件中设置的用户是空间开发人员和组织经理。 是使用 cf 命令 - ( cf create-user 创建的。
尝试使用此用户手动登录仅成功"cf auth [user] [pwd] --origin UAA">但是尝试登录"cf login -u [user] -p [pwd] 失败。
如何将 scdf 设置为使用 cf 身份验证而不是 cf 登录进行身份验证的部署内部用户,因为似乎应用了身份验证方法?
将不胜感激这里的任何帮助
设置我的组织凭据时,问题已解决。这暗示了船长身份验证实现与"cf login -user"一起应用...因为这就是我登录CF的方式。
但是,不允许使用个人凭据部署船长服务器。
与此问题相关的我的船长yaml配置是:
*JBP_CONFIG_SPRING_AUTO_RECONFIGURATION: '{enabled: false}'
SPRING_CLOUD_SKIPPER_SERVER_PLATFORM_CLOUDFOUNDRY_ACCOUNTS[default]_CONNECTION_ORG: org1 SPRING_CLOUD_SKIPPER_SERVER_PLATFORM_CLOUDFOUNDRY_ACCOUNTS[default]_CONNECTION_SKIP_SSL_VALIDATION: false
SPRING_CLOUD_SKIPPER_SERVER_PLATFORM_CLOUDFOUNDRY_ACCOUNTS[default]_CONNECTION_SPACE: space1 SPRING_CLOUD_SKIPPER_SERVER_PLATFORM_CLOUDFOUNDRY_ACCOUNTS[default]_CONNECTION_URL: <our cf api domain> SPRING_CLOUD_SKIPPER_SERVER_PLATFORM_CLOUDFOUNDRY_ACCOUNTS[default]_CONNECTION_USERNAME: admin-user
SPRING_CLOUD_SKIPPER_SERVER_PLATFORM_CLOUDFOUNDRY_ACCOUNTS[default]_CONNECTION_PASSWORD: some-password
SPRING_CLOUD_SKIPPER_SERVER_PLATFORM_CLOUDFOUNDRY_ACCOUNTS[default]_DEPLOYMENT_DOMAIN: <domain>*
来自船长的错误是:(用户身份验证失败(
ERROR .a.CloudFoundryPlatformAutoConfiguration : Cloud Foundry platform account [default] could not be registered: unauthorized: invalid_grant ;User authentication failed. Error creating bean with name 'deployerInitializationService' defined in class path resource [org/springframework/cloud/skipper/server/config/SkipperServerPlatformConfiguration.class]: Unsatisfied dependency expressed through method 'deployerInitializationService' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cloudFoundryPlatform' defined in class path resource [org/springframework/cloud/skipper/server/autoconfigure/CloudFoundryPlatformAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.skipper.domain.Platform]: Factory method 'cloudFoundryPlatform' threw exception; nested exception is org.springframework.cloud.skipper.SkipperException: unauthorized: {"error":"invalid_grant","error_description":"User authentication failed."}
目前不支持 Spring 数据流服务器和船长的相关代码使用无默认 UAA 登录。 为弹簧数据流创建的问题。(https://github.com/spring-cloud/spring-cloud-deployer-cloudfoundry/issues/316(
支持非默认UAA,因为Spring Cloud数据流跳过者2.2.0.RC1和数据流服务器2.3.0.RC1。 问题已解决。