hilla icon indicating copy to clipboard operation
hilla copied to clipboard

Wrong example for SQL Authentication

Open krissvaa opened this issue 1 year ago • 2 comments

SQL Authentication example in Hilla docs doesn't work as @Override protected void configure(AuthenticationManagerBuilder auth) as such method doesn't exist in VaadinWebSecurity

https://hilla.dev/docs/lit/guides/security/spring-login#sql-authentication (same for LDAP)

Could be that it was a mistake and Default Spring implementation should be used? https://spring.io/blog/2022/02/21/spring-security-without-the-websecurityconfigureradapter#jdbc-authentication

krissvaa avatar Feb 16 '24 08:02 krissvaa

Could be that it was a mistake and Default Spring implementation should be used?

I think so. There should be nothing Hilla specific in setting up AuthenticationManager with an SQL database.

platosha avatar Feb 20 '24 12:02 platosha

This example can be based directly on Spring Security, or even be replaced with a link to the Spring Security documentation.

platosha avatar Feb 20 '24 12:02 platosha