This is the simple demonstration of secure your restful web-service with basic auth. with the help of user name and password. Demo Version
Follow Me on faceBook : https://www.facebook.com/TechTalkDebu
- Java 8
- Maven
username : techtalk password : debu
as Started with /api
{ "customerId": 1, "customerName": "TechTalk Hello guys", "customerGender": "MALE" }
Post Url : http://localhost:8080/api/customer ( Not Secured. don't need basic auth ) Get Url : http://localhost:8080/customer ( Secured. need basic auth details - user name and password )
#Dependency Need to Add for security Only org.springframework.boot spring-boot-starter-security javax.servlet javax.servlet-api
#YouTube #Link #Follow #Me : http://www.youtube.com/c/TechTalkDebu
Check the Video in my #Security playlist