Closed Yue-plus closed 1 month ago
I followed the documentation to create a new project and tried to authentication with Spring Security. 我按照 文档 新建了一个项目,并试着使用 Spring Security 进行身份验证。
Why does the client not have permission to call getUserInfo()
?
为什么在客户端没有权限调用 getUserInfo()
?
As seen from the screenshots, the user isn't authenticated yet, and the getUserInfo()
endpoint does not allow anonymous access, so it is correctly responding with the 401 error.
There has been a related issue fixed around handling this error from the Hilla auth side, see #2237.
Otherwise this seems to work as expected.
How do I configure SQL authentication data sources for Spring Security? 如何为 Spring Security 配置 SQL 认证数据源?
I saw in the documentation that it mentioned the need to override the
configure(AuthenticationManagerBuilder auth)
method in theVaadinWebSecurity
configuration class, but I did not find this method in Hilla 2.5.7. 我看到了 文档 中提到了需要重写VaadinWebSecurity
配置类中的configure(AuthenticationManagerBuilder auth)
方法,但是我在 Hilla 2.5.7 中没有找到该方法。