diff --git a/README.md b/README.md index 9b409e51..0c590ad6 100644 --- a/README.md +++ b/README.md @@ -160,7 +160,7 @@ The following changes and improvements are planned for the following releases ### 2.3.0 -* [ ] Update to latest libs +* [x] Update to latest libs ### 3.x.x diff --git a/src/main/java/de/theit/jenkins/crowd/CrowdSecurityRealm.java b/src/main/java/de/theit/jenkins/crowd/CrowdSecurityRealm.java index f46a1a2a..ba61559e 100644 --- a/src/main/java/de/theit/jenkins/crowd/CrowdSecurityRealm.java +++ b/src/main/java/de/theit/jenkins/crowd/CrowdSecurityRealm.java @@ -463,18 +463,16 @@ public String getName() { } } - /** * {@inheritDoc} * - * @see hudson.security.AbstractPasswordBasedSecurityRealm#authenticate(java.lang.String, + * @see hudson.security.AbstractPasswordBasedSecurityRealm#authenticate2(java.lang.String, * java.lang.String) - * This function maybe broken due to need of introducing breaking changes for its dependencies + * */ @Override - @Deprecated - protected org.acegisecurity.userdetails.UserDetails authenticate(String pUsername, String pPassword) - throws org.acegisecurity.AuthenticationException { + protected UserDetails authenticate2(String pUsername, String pPassword) + throws AuthenticationException { // ensure that the group is available, active and that the user // is a member of it if (!this.configuration.isGroupMember(pUsername)) { @@ -525,7 +523,7 @@ protected org.acegisecurity.userdetails.UserDetails authenticate(String pUsernam // ..and all authorities retrieved from the Crowd server authorities.addAll(this.configuration.getAuthoritiesForUser(pUsername)); - return (org.acegisecurity.userdetails.UserDetails)(new CrowdUser(user, authorities)); + return new CrowdUser(user, authorities); } /**