Package emu.grasscutter.auth
Class DefaultAuthenticators.ExternalAuthentication
java.lang.Object
emu.grasscutter.auth.DefaultAuthenticators.ExternalAuthentication
- All Implemented Interfaces:
ExternalAuthenticator
- Enclosing class:
- DefaultAuthenticators
public static class DefaultAuthenticators.ExternalAuthentication
extends Object
implements ExternalAuthenticator
Handles authentication requests from external sources.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when an external account creation request is made.voidCalled when an external login request is made.voidCalled when an external password reset request is made.
-
Constructor Details
-
ExternalAuthentication
public ExternalAuthentication()
-
-
Method Details
-
handleLogin
Description copied from interface:ExternalAuthenticatorCalled when an external login request is made.- Specified by:
handleLoginin interfaceExternalAuthenticator- Parameters:
request- The authentication request.
-
handleAccountCreation
Description copied from interface:ExternalAuthenticatorCalled when an external account creation request is made.- Specified by:
handleAccountCreationin interfaceExternalAuthenticator- Parameters:
request- The authentication request. For developers: Use `@link AuthenticationRequest#getRequest()` to get the request body. Use `AuthenticationRequest#getResponse()` to get the response body.
-
handlePasswordReset
Description copied from interface:ExternalAuthenticatorCalled when an external password reset request is made.- Specified by:
handlePasswordResetin interfaceExternalAuthenticator- Parameters:
request- The authentication request. For developers: Use `AuthenticationRequest#getRequest()` to get the request body. Use `AuthenticationRequest#getResponse()` to get the response body.
-