Skip to content
Advertisement

Tag: basic-authentication

HTTP Basic Authentication using Spring Boot’s Java based configuration

I am trying to set up a simple Spring Boot application secured with HTTP Basic Authentication using a single user with a hard-coded password. So far, I got it working using XML based configuration. How can I achieve the same result using Java based configuration? SecurityConfig.java spring-security.xml Note: I had to use @EnableWebSecurity instead of @Configuration to work around Spring

Advertisement