In a Spring web app, @RequestScoped gives a bean a separate instance for each HTTP request. Request-specific data, such as login credentials, stays independent and is not kept beyond the request. section 9.1
Login credentials
A LoginProcessor stores the username and password received by the controller, then validates them. Marking it request-scoped gives each login request its own processor instance; register the bean with @Component or @Bean as well. section 9.1
