6365185c70
* BAEL-4914 Code for EnableGlobalMethodSecurity vs EnableWebSecurity * BAEL-4914 Add newline after @Autowired in Test |
||
---|---|---|
.. | ||
src | ||
README.md | ||
pom.xml |
README.md
Spring Boot Security
This module contains articles about Spring Boot Security
Relevant Articles:
- Spring Boot Security Auto-Configuration
- Spring Security for Spring Boot Integration Tests
- Introduction to Spring Security Taglibs
- Guide to @CurrentSecurityContext in Spring Security
- Disable Security for a Profile in Spring Boot
Spring Boot Security Auto-Configuration
- mvn clean install
- uncomment actuator dependency simultaneously with the line from basic auth main class
- uncomment security properties for easy testing. If not random will be generated.
CURL commands
- curl -X POST -u baeldung-admin:baeldung -d grant_type=client_credentials -d username=baeldung-admin -d password=baeldung http://localhost:8080/oauth/token