1
有誰知道如何使用DynamoDB
提供彈簧安全驗證?換句話說,您將如何使用DynamoDB
轉換/代表以下configAuthentication
方法?使用DynamoDB的Spring安全驗證
@Autowired
public void configAuthentication(AuthenticationManagerBuilder auth)
throws Exception {
auth.jdbcAuthentication().dataSource(dataSource)
.usersByUsernameQuery("select username, password, enabled from appuser where username = ?")
.authoritiesByUsernameQuery("select username, rolename from appuser natural join user_role natural join role where username = ?;");
}
https://github.com/michaellavelle/spring-security-spring-data-dynamodb是我發現的最接近正式答案,但它在三年內還沒有更新,所以我很懷疑該包。您已經在使用目前正在維護的https://github.com/derjust/spring-data-dynamodb,但我沒有看到關於JWT/Spring Security的任何信息。 –