Class MCAuthServiceGrpc
java.lang.Object
com.soulfiremc.grpc.generated.MCAuthServiceGrpc
Service for authenticating Minecraft accounts for use with SoulFire bots. Supports multiple authentication methods including Microsoft OAuth (credentials and device code flows) and offline mode. All methods require the caller to have AUTHENTICATE_MC_ACCOUNT permission for the target instance. Authentication may optionally use proxies if configured in instance settings (USE_PROXIES_FOR_ACCOUNT_AUTH). All authentication operations have timeouts to prevent indefinite hangs (2 minutes for credentials/refresh, 15 minutes for device code flow).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceService for authenticating Minecraft accounts for use with SoulFire bots.static final classA stub to allow clients to do limited synchronous rpc calls to service MCAuthService.static final classA stub to allow clients to do synchronous rpc calls to service MCAuthService.static final classA stub to allow clients to do ListenableFuture-style rpc calls to service MCAuthService.static classBase class for the server implementation of the service MCAuthService.static final classA stub to allow clients to do asynchronous rpc calls to service MCAuthService. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic final io.grpc.ServerServiceDefinitionstatic io.grpc.MethodDescriptor<CredentialsAuthRequest, CredentialsAuthResponse> static io.grpc.MethodDescriptor<DeviceCodeAuthRequest, DeviceCodeAuthResponse> static io.grpc.MethodDescriptor<RefreshRequest, RefreshResponse> static io.grpc.ServiceDescriptornewBlockingStub(io.grpc.Channel channel) Creates a new blocking-style stub that supports unary and streaming output calls on the servicenewBlockingV2Stub(io.grpc.Channel channel) Creates a new blocking-style stub that supports all types of calls on the servicenewFutureStub(io.grpc.Channel channel) Creates a new ListenableFuture-style stub that supports unary calls on the servicenewStub(io.grpc.Channel channel) Creates a new async stub that supports all call types for the service
-
Field Details
-
SERVICE_NAME
- See Also:
-
-
Method Details
-
getLoginCredentialsMethod
public static io.grpc.MethodDescriptor<CredentialsAuthRequest, CredentialsAuthResponse> getLoginCredentialsMethod() -
getLoginDeviceCodeMethod
public static io.grpc.MethodDescriptor<DeviceCodeAuthRequest, DeviceCodeAuthResponse> getLoginDeviceCodeMethod() -
getRefreshMethod
-
newStub
Creates a new async stub that supports all call types for the service -
newBlockingV2Stub
public static MCAuthServiceGrpc.MCAuthServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) Creates a new blocking-style stub that supports all types of calls on the service -
newBlockingStub
Creates a new blocking-style stub that supports unary and streaming output calls on the service -
newFutureStub
Creates a new ListenableFuture-style stub that supports unary calls on the service -
bindService
public static final io.grpc.ServerServiceDefinition bindService(MCAuthServiceGrpc.AsyncService service) -
getServiceDescriptor
public static io.grpc.ServiceDescriptor getServiceDescriptor()
-