简体   繁体   中英

Spring Cloud Config Server - Security Details

I implemented spring cloud config server and pushed it to pivotal cloud foundry. I added the below listed security details in 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'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM