[英]Spring Cloud Config Server - Security Details
I implemented spring cloud config server and pushed it to pivotal cloud foundry.我实现了 spring 云配置服务器并将其推送到关键的云代工厂。 I added the below listed security details in application.yml.我在 application.yml 中添加了下面列出的安全细节。 I did a "get" on the config server endpoint without passing any security credentials.我在没有传递任何安全凭证的情况下在配置服务器端点上做了一个“获取”。 I am able to receive a successful response , but I was expecting it to return an error saying authentication details aren't passed.我能够收到成功的响应,但我希望它返回一个错误,指出身份验证详细信息未通过。 Please can you let me know what I am missing?请你能告诉我我错过了什么吗?
security:
basic:
enabled: true
user:
name: ctp_config
password: ctp_config
如果您使用 Spring Boot,请尝试添加到依赖项 'org.springframework.boot:spring-boot-starter-security'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.