【问题标题】:How to set up Spring security to authenticate signed requests?如何设置 Spring 安全性来验证签名请求?
【发布时间】:2010-02-24 09:20:47
【问题描述】:

spring 支持签名请求的认证吗? (如公开社交提供的签名授权,即open social makeRequest API

如果是这样,你如何配置它?

最好的问候

亚尼夫

【问题讨论】:

    标签: authorization spring-security opensocial


    【解决方案1】:

    基于Spring Security 站点,它似乎不支持它。但是没有什么能阻止你实施它。您将必须实现自定义 AbstractProcessingFilter(就像 CAS CasProcessingFilter、登录表单 AuthenticationProcessingFilter 和 OpenId OpenIDAuthenticationProcessingFilter 有一个过滤器一样)。您可能还必须实现 AuthenticationProvider 并对其进行类似这样的配置:

    <bean id="authenticationManager" class="org.springframework.security.providers.ProviderManager">
    <property name="providers">
        <list>
          <ref local="myAuthenticationProvider" />
        </list>
      </property>
    </bean>
    

    【讨论】:

    • spring oauth 的当前实现现在支持这个
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-06-28
    • 2013-01-25
    • 2019-10-04
    • 1970-01-01
    • 2018-08-25
    • 2020-06-23
    • 2020-10-17
    相关资源
    最近更新 更多