SEC-1133: Allow setting authenticationDetailsSource ref via form-login namespace URL #1382

Closed
spring-issuemaster opened this Issue Apr 1, 2009 · 3 comments

1 participant

@spring-issuemaster

Migrated from SEC-1133

@spring-issuemaster

Stephen Crawley said:

This issue is a high priority for me. See also SEC-1485.

@spring-issuemaster

Luke Taylor said:

Added authentication-details-source-ref attribute to form-login, openid-login, x509 and http-basic elements.

@spring-issuemaster

Matthew Fleming said:

Work around I used...

    protected void configure(HttpSecurity http) throws Exception {
        http.anonymous()
          .authenticationFilter(anonymousAuthenticationFilter())
          .and()
        ...
    }

    @Bean
    AnonymousAuthenticationFilter anonymousAuthenticationFilter() {
        AnonymousAuthenticationFilter ret = new AnonymousAuthenticationFilter(UUID.randomUUID().toString());
        ret.setAuthenticationDetailsSource(authenticationDetailsSource());
        return ret;
    }

    @Bean
    public AuthenticationDetailsSource authenticationDetailsSource() {
        return new WhateverYourDetailsSourceIs();
    }
@spring-issuemaster spring-issuemaster added this to the 3.1.0.M1 milestone Feb 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment