Package wizardquest.auth
Class Authenticator
java.lang.Object
wizardquest.auth.Authenticator
- All Implemented Interfaces:
AuthenticatorInterface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlogin()Prompts the user to log in via Google, and returns the result.
-
Constructor Details
-
Authenticator
public Authenticator()
-
-
Method Details
-
login
Description copied from interface:AuthenticatorInterfacePrompts the user to log in via Google, and returns the result.- Specified by:
loginin interfaceAuthenticatorInterface- Returns:
- Returns an AuthenticationResult object, which contains the authenticated user's name, unique userID (sub), and their Role.
- Throws:
AuthenticationException- if authentication fails.
-