All Downloads are FREE. Search and download functionalities are using the official Maven repository.

emu.grasscutter.auth.ExternalAuthenticator Maven / Gradle / Ivy

package emu.grasscutter.auth;

import emu.grasscutter.auth.AuthenticationSystem.AuthenticationRequest;

/**
 * Handles authentication via external routes.
 */
public interface ExternalAuthenticator {

    /**
     * Called when an external login request is made.
     * @param request The authentication request.
     */
    void handleLogin(AuthenticationRequest request);

    /**
     * Called when an external account creation request is made.
     * @param request The authentication request.
     *
     * For developers: Use AuthenticationRequest#getRequest() to get the request body.
     *                 Use AuthenticationRequest#getResponse() to get the response body.
     */
    void handleAccountCreation(AuthenticationRequest request);

    /**
     * Called when an external password reset request is made.
     * @param request The authentication request.
     *
     * For developers: Use AuthenticationRequest#getRequest() to get the request body.
     *                 Use AuthenticationRequest#getResponse() to get the response body.
     */
    void handlePasswordReset(AuthenticationRequest request);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy