Spring Boot. HMAC authentication. How to add custom AuthenticationProvider and Authentication filter?

后端 未结 1 1853
遇见更好的自我
遇见更好的自我 2021-02-09 14:12

To implement HMAC authentication I made my own filter, provider and token. RestSecurityFilter:

public class RestSecurityFilter extends AbstractAuthenticationProc         


        
相关标签:
1条回答
  • 2021-02-09 14:50

    I'm not familiar with Spring Boot, but I saw your comment on my question How To Inject AuthenticationManager using Java Configuration in a Custom Filter

    In a traditional Spring Security XML configuration, you would specify your custom RestSecurityFilter like so

    <http use-expressions="true" create-session="stateless" authentication-manager-ref="authenticationManager" entry-point-ref="restAuthenticationEntryPoint">
           <custom-filter ref="restSecurityFilter" position="FORM_LOGIN_FILTER" />
    </http>
    

    More information http://docs.spring.io/spring-security/site/docs/4.0.1.RELEASE/reference/htmlsingle/#ns-custom-filters

    0 讨论(0)
提交回复
热议问题