When I run spring cloud config server without spring security the service fetches the config without issue but when I activate Spring security it won't fetch the config files. It seems to throw a 401 http error. I have checked that the username and password is correct, I have also tried the user:password@url way of authenticating with the same issue.
If i access the url http://localhost:8888/service/default directly in browser and enter the username and password the configs are displayed.
I tried adding it to existing services I had and it did not work so I created a new config server and a new client via the spring initializer on https://start.spring.io/ with the below config and still does not work. it seems to always fail with the same issue.
Spring Boot version: '2.2.4.RELEASE' spring-cloud-config-server version: '2.2.1.RELEASE' Build system: Gradle Java 8
Configs and logs detailed in this stack overflow post:
https://stackoverflow.com/questions/60298657/spring-cloud-config-client-not-fetching-config-when-spring-security-is-active-on
Comment From: spencergibb
Please don't cross post, closing in favor of stack overflow