Package emu.grasscutter.auth
Interface OAuthAuthenticator
- All Known Implementing Classes:
DefaultAuthenticators.OAuthAuthentication
public interface OAuthAuthenticator
Handles authentication via OAuth routes.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe type of the client. -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when an OAuth login request is made.voidhandleRedirection(AuthenticationSystem.AuthenticationRequest request, OAuthAuthenticator.ClientType clientType) Called when a client requests to redirect to login page.voidCalled when an OAuth login requests callback.
-
Method Details
-
handleLogin
Called when an OAuth login request is made.- Parameters:
request- The authentication request.
-
handleRedirection
void handleRedirection(AuthenticationSystem.AuthenticationRequest request, OAuthAuthenticator.ClientType clientType) Called when a client requests to redirect to login page.- Parameters:
request- The authentication request.
-
handleTokenProcess
Called when an OAuth login requests callback.- Parameters:
request- The authentication request.
-