英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论