Class LegacyAuthenticationMechanism

java.lang.Object
google.registry.request.auth.LegacyAuthenticationMechanism
All Implemented Interfaces:
AuthenticationMechanism

public class LegacyAuthenticationMechanism extends Object implements AuthenticationMechanism
Authentication mechanism for legacy cookie-based App Engine authentication.

Just use the values returned by UserService.

  • Constructor Details

    • LegacyAuthenticationMechanism

      @Inject public LegacyAuthenticationMechanism(com.google.appengine.api.users.UserService userService, XsrfTokenManager xsrfTokenManager)
  • Method Details

    • authenticate

      public AuthResult authenticate(jakarta.servlet.http.HttpServletRequest request)
      Description copied from interface: AuthenticationMechanism
      Attempt to authenticate an incoming request.
      Specified by:
      authenticate in interface AuthenticationMechanism
      Parameters:
      request - the request to be authenticated
      Returns:
      the results of the authentication check; if the request could not be authenticated, the mechanism should return AuthResult.NOT_AUTHENTICATED