【问题标题】:Spring LDAP Basic Auth caching some clients but not othersSpring LDAP Basic Auth缓存一些客户端但不缓存其他客户端
【发布时间】:2021-04-26 03:00:12
【问题描述】:

我正在使用org.springframework.security.ldap.authentication.LdapAuthenticationProvider.LdapAuthenticationProvider(LdapAuthenticator authenticator, LdapAuthoritiesPopulator authoritiesPopulator) 来验证我的客户。当我从 SoapUI 调用时,我可以看到每次执行此切入点execution(Authentication org.springframework.security.authentication.ProviderManager.authenticate(Authentication)) 当我从邮递员调用时,它只会在邮递员第一次调用时执行。

我的应用程序似乎以某种方式缓存了客户端,并说当我从邮递员那里打电话时它不需要重新验证,但是当我从 soapui 打电话时,这并没有发生。有什么区别?

我已尝试更改我在 postman 和 soapui 中可以看到的所有设置,但我似乎无法对结果产生任何影响。有人可以描述一下,或者给我指出一个描述正在发生的事情的资源吗?

【问题讨论】:

    标签: spring-security postman soapui spring-ldap spring-security-ldap


    【解决方案1】:

    似乎与cookies有关...在邮递员中我找到了一个属性,禁用cookie jar。如果启用该功能,我将获得与soapui 相同的性能,并且它始终有效。我想现在我需要看看 cookie 如何与 Spring Security 一起工作。

    【讨论】:

      猜你喜欢
      • 2017-03-18
      • 2012-07-26
      • 2019-04-24
      • 1970-01-01
      • 1970-01-01
      • 2013-02-10
      • 2013-01-04
      • 2020-08-30
      • 1970-01-01
      相关资源
      最近更新 更多