Hello I have a Spring Boot application, which only has 1 Admin and no users. I already created a Table called: "administrator" which contains the username and a String with the hashed password. (I put the password in a converter to do so.)
Now my question is what I should change in the WebSecurityConfiguration.java
so that the code checks the hash in my database with the String I've written in the login form to be able to log in.
My code:
@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
auth.inMemoryAuthentication()
.withUser("admin").password("admin").roles("ADMIN");
}
I found the following but I still don't really know what to do: