Skip to content

Commit

Permalink
AbstractPasswordBasedSecurityRealm.authenticateByPassword (#8921)
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Feb 2, 2024
1 parent 3e6dc60 commit 81679b4
Showing 1 changed file with 11 additions and 0 deletions.
Expand Up @@ -4,6 +4,8 @@
import jenkins.model.Jenkins;
import jenkins.security.ImpersonatingUserDetailsService2;
import jenkins.security.SecurityListener;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.Beta;
import org.springframework.security.authentication.AnonymousAuthenticationProvider;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.ProviderManager;
Expand Down Expand Up @@ -80,6 +82,15 @@ protected UserDetails authenticate2(String username, String password) throws Aut
}
}

/**
* A public alias of @{link {@link #authenticate2(String, String)}.
* @since TODO
*/
@Restricted(Beta.class)
public final UserDetails authenticateByPassword(String username, String password) throws AuthenticationException {
return authenticate2(username, password);
}

/**
* @deprecated use {@link #authenticate2}
*/
Expand Down

0 comments on commit 81679b4

Please sign in to comment.