Spring Security
  1. Spring Security
  2. SEC-1084

Retain Authentication.details when authenticating in LdapAuthenticationProvider

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 3.0.0 M1
    • Component/s: LDAP
    • Labels:
      None

      Description

      It seems that the LdapAuthenticationProvider looses any details set on the incomming Authentication.details property. Several other AuthenticationProviders retain these details

      Unless of course this is intentional it should be trivial to improve this with simply copying the details, thus making them available to the application.

      Simple suggestion attached as patch.

        Issue Links

          Activity

          Hide
          Luke Taylor added a comment -

          Thanks for spotting this. I've updated the default createSuccessfulAuthentication method to add the details to the authentication result.

          Show
          Luke Taylor added a comment - Thanks for spotting this. I've updated the default createSuccessfulAuthentication method to add the details to the authentication result.

            People

            • Assignee:
              Luke Taylor
              Reporter:
              Kim Thrysøe
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: