Package emu.grasscutter.auth
Class DefaultAuthenticators.OAuthAuthentication
java.lang.Object
emu.grasscutter.auth.DefaultAuthenticators.OAuthAuthentication
- All Implemented Interfaces:
OAuthAuthenticator
- Enclosing class:
- DefaultAuthenticators
public static class DefaultAuthenticators.OAuthAuthentication
extends Object
implements OAuthAuthenticator
Handles authentication requests from OAuth sources.
-
Nested Class Summary
Nested classes/interfaces inherited from interface emu.grasscutter.auth.OAuthAuthenticator
OAuthAuthenticator.ClientType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when an OAuth login request is made.voidhandleRedirection(AuthenticationSystem.AuthenticationRequest request, OAuthAuthenticator.ClientType type) Called when a client requests to redirect to login page.voidCalled when an OAuth login requests callback.
-
Constructor Details
-
OAuthAuthentication
public OAuthAuthentication()
-
-
Method Details
-
handleLogin
Description copied from interface:OAuthAuthenticatorCalled when an OAuth login request is made.- Specified by:
handleLoginin interfaceOAuthAuthenticator- Parameters:
request- The authentication request.
-
handleRedirection
public void handleRedirection(AuthenticationSystem.AuthenticationRequest request, OAuthAuthenticator.ClientType type) Description copied from interface:OAuthAuthenticatorCalled when a client requests to redirect to login page.- Specified by:
handleRedirectionin interfaceOAuthAuthenticator- Parameters:
request- The authentication request.
-
handleTokenProcess
Description copied from interface:OAuthAuthenticatorCalled when an OAuth login requests callback.- Specified by:
handleTokenProcessin interfaceOAuthAuthenticator- Parameters:
request- The authentication request.
-