2

我正在使用Waffle在 Spring Web 应用程序中实现 ActiveDirectory 单点登录。

我也在使用 Spring Security,并按照本教程集成了这些库。

现在我需要自定义身份验证行为,就像我在一个老问题中所做并描述的那样:Spring Security:如何将 Active Directory 用户映射到应用程序用户?

我基本上只需要允许注册用户的身份验证并将 AD 用户映射到应用程序用户。

为了实现这一点,我需要扩展一些AuthenticationProviderand UserDetailsContextMapper,但我在 Waffle 实现中找不到任何类似的东西。

那么,我该如何解决我的问题呢?使用 Waffle 时,是否有其他方法可以在身份验证和授权链中添加逻辑?

4

0 回答 0