Class JsonAuthProvider
java.lang.Object
pro.gravit.launchserver.auth.provider.AuthProvider
pro.gravit.launchserver.auth.provider.JsonAuthProvider
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsFields inherited from class pro.gravit.launchserver.auth.provider.AuthProvider
providers, srv -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class pro.gravit.launchserver.auth.provider.AuthProvider
authError, getDetails, getFirstAuthType, getSecondAuthType, init, preAuth, registerProviders
-
Field Details
-
url
-
enable2FA
public boolean enable2FA -
apiKey
-
-
Constructor Details
-
JsonAuthProvider
public JsonAuthProvider()
-
-
Method Details
-
auth
public AuthProviderResult auth(String login, pro.gravit.launcher.request.auth.AuthRequest.AuthPasswordInterface password, String ip) throws IOExceptionDescription copied from class:AuthProviderVerifies the username and password- Specified by:
authin classAuthProvider- Parameters:
login- user loginpassword- user passwordip- user ip- Returns:
- player privileges, effective username and authorization token
- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classAuthProvider
-