Interface CrowdHttpAuthenticator

All Known Implementing Classes:
CacheAwareCrowdHttpAuthenticator, CachedCrowdHttpAuthenticatorImpl, CrowdHttpAuthenticatorImpl

public interface CrowdHttpAuthenticator
This interface is used to manage HTTP authentication. It is the fundamental class for web/SSO authentication integration. This interface contains many convenience methods for authentication integration with existing applications. For most applications, using the following methods will be sufficient to achieve SSO:
  1. authenticate: authenticate a user. checkAuthenticated(HttpServletRequest, HttpServletResponse) determine if a request is authenticated.
  2. getUser: retrieve the user for an authenticated request.
  3. logout: sign the user out.
Use the HttpAuthenticatorFactory to get an instance of a class, or use an IoC container (like Spring) to manage the underlying implementation as a singleton.
  • Method Summary

    Modifier and Type
    Method
    Description
    authenticate(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String username, String password)
    Authenticates the user based on provided credentials.
    authenticateWithoutValidatingPassword(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String username)
    Authenticates the user without validating password.
    checkAuthenticated(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    Tests whether a request is authenticated via SSO.
    getToken(jakarta.servlet.http.HttpServletRequest request)
    Retrieves the Crowd authentication token from the request.
    getUser(jakarta.servlet.http.HttpServletRequest request)
    Attempts to retrieve the currently authenticated User from the request.
    void
    logout(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    Logs out the authenticated user.