Spring Boot User Registration and Login

Update 2020/05/02: I removed useless `csrf().disabled()` config and CustomAuthenticationProvider class. Also I changed Optional logic and used `orElseThrow()` method. Thanks @gokcendedat and @utkuozdemir for their valuable comments.

Hello! In this article I’ll explain how to register users to your application, how to send confirmation mail and handle user logins. My main resource will be…