Authentication issues from Cloud foundry V2
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- java, spring-boot
- 领域
- authentication, cloud
调研方向
从创建 DefaultConnectionContext、CloudFoundryClient、ReactorDopplerClient、ReactorUaaClient 和 PasswordGrantTokenProvider 的 @Bean 方法开始。跟踪五分钟有效的密码和令牌提供程序在后续请求期间的使用方式,然后重现延迟发生的身份验证失败。完成标准是确定生命周期或刷新原因,并记录或验证可靠的解决方案。
由索引模型根据 Issue 内容生成。
描述
Hello everyone, we are using the cloud foundry V2 client for creating/updating Hana Cloud service instances.
The error is
unauthorized: {"error":"invalid_grant","error_description":"User authentication failed: Unauthorized"}
We have a spring boot app and they way we initialize our CF client is with a @Configuration class on application start.
@Bean
public DefaultConnectionContext connectionContext() {
String cfApi = CfToolsHelper.getCfApi();
String host = cfApi.substring(cfApi.lastIndexOf("/") + 1);
return DefaultConnectionContext.builder().apiHost(host).build();
}
@Bean
CloudFoundryClient cloudFoundryClient(ConnectionContext connectionContext, TokenProvider tokenProvider) {
return ReactorCloudFoundryClient.builder()
.connectionContext(connectionContext)
.tokenProvider(tokenProvider)
.build();
}
@Bean
ReactorDopplerClient dopplerClient(ConnectionContext connectionContext, TokenProvider tokenProvider) {
return ReactorDopplerClient.builder().connectionContext(connectionContext).tokenProvider(tokenProvider).build();
}
@Bean
ReactorUaaClient uaaClient(ConnectionContext connectionContext, TokenProvider tokenProvider) {
return ReactorUaaClient.builder().connectionContext(connectionContext).tokenProvider(tokenProvider).build();
}
We have a technical user and for the authentication we user username and x509 certificate. With it we create a one-time, 5 minute-living passcode with which we create initialize a bean of PasswordGrantTokenProvider:
return PasswordGrantTokenProvider.builder().password(passcode).username(username).build();
which is used for the init of the client above. After that we do not re-initialize PasswordGrantTokenProvider during the lifetime of the app.
We haven't seen any concrete dependency on why and when the error is thrown. E.g. after application start there can be multiple successful executions in the timespan of several hours, but after that it start failing(here I cannot say if from this point on it fails every time or if there can still be successful executions after the first failure, but for sure it fails more than not).
- 主要语言
- Java
- 星标
- 334
- 派生
- 319
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
cloudfoundry/cf-java-client 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
cloudfoundry/cf-java-client#1374 ·
-
Integration tests fail: test-service-broker.jar incompatible with java-buildpack v5 (JDK 17 default) 未关闭
难度 2/5 半天 新手友好度 74/100
cloudfoundry/cf-java-client#1344 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
cloudfoundry/cf-java-client#1376 ·
-
难度 5/5 一周以上 新手友好度 15/100
cloudfoundry/cf-java-client#1373 ·
-
难度 3/5 1-2 天 新手友好度 55/100
cloudfoundry/cf-java-client#1370 ·
查看 cloudfoundry/cf-java-client 的全部 Issue
相似的 Issue
-
bug
难度 1/5 1 小时以内 新手友好度 90/100
apache/cloudstack#14222 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
-
1.0.0-alpha2 Type/Improvement
难度 2/5 1-3 小时 新手友好度 68/100
wso2/dpdp-accelerator#272 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
infinispan/infinispan#18150 ·
-
area/frontend
难度 2/5 1-3 小时 新手友好度 65/100