Eclipse Ditto身份验证

huangapple go评论103阅读模式
英文:

Eclipse Ditto authentication

问题

问题是更改eclipse ditto连接验证中的用户名和密码。通常,默认用户名和密码是"devops"和"foobar"。现在我需要更改默认用户名和密码。

我通过在网关服务中设置环境变量DEVOPS_PASSWORD来更改默认密码。

我需要知道更改连接验证的默认用户名的方法。

英文:

My issue is to change username and password in connection authentication of eclipse ditto. Usually, the default username and password was "devops" and "foobar". Now i have to change that default username and password.

I changed the default password by setting the environment variable DEVOPS_PASSWORD in the gateway service.

I need to know the way to change default username of connection authentication.

答案1

得分: 1

devops用户名在https://github.com/eclipse/ditto/blob/master/gateway/service/src/main/java/org/eclipse/ditto/gateway/service/endpoints/directives/auth/DevOpsBasicAuthenticationDirective.java#L38 处被硬编码了。

因此,除非提供可配置的PR,否则无法使用其他用户名。

英文:

The devops username is hard-coded at https://github.com/eclipse/ditto/blob/master/gateway/service/src/main/java/org/eclipse/ditto/gateway/service/endpoints/directives/auth/DevOpsBasicAuthenticationDirective.java#L38

So you can't use another username unless providing a PR for making it configurable.

huangapple
  • 本文由 发表于 2023年7月17日 14:30:29
  • 转载请务必保留本文链接:https://go.coder-hub.com/76701983.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定