I implemented Basic authentication in my web-project. When I start the application I get the basic login-form and when I use an existing user/password from the database the login is successful.
But I have to store a user with his password, when the user doesn´t exist in the database. How do I get the password from the basic login-form?
The user i get in UserDetails loadUserByUsername(String username) but the password? How couldt I avoid that the UsernameNotFoundException is thrown?
Please help me.