https://github.com/puneethkumarck/spring-cloud-config-server
Client project to use the config server
https://github.com/puneethkumarck/spring-cloud-config-server
Last synced: about 1 year ago
JSON representation
Client project to use the config server
- Host: GitHub
- URL: https://github.com/puneethkumarck/spring-cloud-config-server
- Owner: Puneethkumarck
- Created: 2017-11-27T13:42:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-21T18:40:04.000Z (over 8 years ago)
- Last Synced: 2025-01-29T22:46:10.836Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spring-cloud-config-server
spring cloud server app , which uses the git backed configuration properties and make it available to the clients .
This appication starts @ tomcat 8888 port
Use the Below Endpoints to query the properties
http://localhost:8888/s1rates/qa
http://localhost:8888/s1rates/dev
http://localhost:8888/s1rates/default
Adding spring security to block the unAuthorized request querying the App
org.springframework.boot
spring-boot-starter-security
After Adding above dependency , if you try quering the endpoints for properties you would get below response
{
"timestamp": 1513881191780,
"status": 401,
"error": "Unauthorized",
"message": "Full authentication is required to access this resource",
"path": "/s1rates/qa"
}
To fix the above issue pass the Authorization header in the request
curl -H "Authorization: Basic d29ya0Bob21lOndvcmtAaG9tZQ==" http://localhost:8888/s1rates/qa
d29ya0Bob21lOndvcmtAaG9tZQ== : This is Base 64 encoded of value being passed in via security.user.name : security.user.password