Uploaded image for project: 'Spring Security'
  1. Spring Security
  2. SEC-1133

Allow setting authenticationDetailsSource ref via form-login namespace URL

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 3.1.0.M1
    • Component/s: Namespace
    • Labels:
      None

      Issue Links

        Activity

        Hide
        crawley Stephen Crawley added a comment -

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

        Show
        crawley Stephen Crawley added a comment - This issue is a high priority for me. See also SEC-1485 .
        Hide
        luke Luke Taylor added a comment -

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

        Show
        luke Luke Taylor added a comment - Added authentication-details-source-ref attribute to form-login, openid-login, x509 and http-basic elements.
        Hide
        matthewdfleming Matthew Fleming added a comment -

        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();
            }

        Show
        matthewdfleming Matthew Fleming added a comment - 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(); }

          People

          • Assignee:
            luke Luke Taylor
            Reporter:
            hakalap Petri Hakala
          • Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: