Use Spring Security with custom LoginView and Authentication?

Hello,
how can I use spring-boot-security with an custom LoginView and Authenticator? I followed [this]
(https://vaadin.com/learn/tutorials/modern-web-apps-with-spring-boot-and-vaadin/adding-a-login-screen-to-a-vaadin-app-with-spring-security?utm_campaign=Java%20Web%20App%20Tutorial&utm_source=youtube&utm_medium=social) tutorial and left out the part with the H2 DB and Authentication Provider…

I have an Login Class, checking if the credentials are correct. This class also has an login() function to register the user as online etc.
How can I fully customize the Spring Security Process? It already redirects to my LoginView-Page, but I haven’t found a way to login using an Button.

-Which Function do I have to call?
-How to authenticate from Login Class?

Best Regards
Mats

The tutorial covers how you make your own custom login page, by making use of LoginForm (you can also use LoginOverlay). These are premade forms which also include the button which will automatically trigger the authenticate method of your AuthenticationProvider implementation, which you will need to make, and inject into your Spring Security Configuration.

[Here]
(https://dzone.com/articles/spring-security-authentication) is a great article about Springs AuthenticationProviders/UserDetailsServices. You can see there how the different classes play together.

There is also another Vaadin Tutorial that goes more into the details (but not very much about authenticationProviders there): [securing your app with spring security]
(https://vaadin.com/learn/tutorials/securing-your-app-with-spring-security)

Kaspar Scherrer:
The tutorial covers how you make your own custom login page, by making use of LoginForm (you can also use LoginOverlay). These are premade forms which also include the button which will automatically trigger the authenticate method of your AuthenticationProvider implementation, which you will need to make, and inject into your Spring Security Configuration.

[Here]
(https://dzone.com/articles/spring-security-authentication) is a great article about Springs AuthenticationProviders/UserDetailsServices. You can see there how the different classes play together.

There is also another Vaadin Tutorial that goes more into the details (but not very much about authenticationProviders there): [securing your app with spring security]
(https://vaadin.com/learn/tutorials/securing-your-app-with-spring-security)

thank you so much, was able to make it now