Package google.registry.request.auth
Class LegacyAuthenticationMechanism
java.lang.Object
google.registry.request.auth.LegacyAuthenticationMechanism
- All Implemented Interfaces:
AuthenticationMechanism
Authentication mechanism for legacy cookie-based App Engine authentication.
Just use the values returned by UserService.
-
Constructor Summary
ConstructorDescriptionLegacyAuthenticationMechanism
(com.google.appengine.api.users.UserService userService, XsrfTokenManager xsrfTokenManager) -
Method Summary
Modifier and TypeMethodDescriptionauthenticate
(jakarta.servlet.http.HttpServletRequest request) Attempt to authenticate an incoming request.
-
Constructor Details
-
LegacyAuthenticationMechanism
@Inject public LegacyAuthenticationMechanism(com.google.appengine.api.users.UserService userService, XsrfTokenManager xsrfTokenManager)
-
-
Method Details
-
authenticate
Description copied from interface:AuthenticationMechanism
Attempt to authenticate an incoming request.- Specified by:
authenticate
in interfaceAuthenticationMechanism
- 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
-