Class MCAuthServiceGrpc.MCAuthServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<MCAuthServiceGrpc.MCAuthServiceFutureStub>
io.grpc.stub.AbstractFutureStub<MCAuthServiceGrpc.MCAuthServiceFutureStub>
com.soulfiremc.grpc.generated.MCAuthServiceGrpc.MCAuthServiceFutureStub
- Enclosing class:
MCAuthServiceGrpc
public static final class MCAuthServiceGrpc.MCAuthServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<MCAuthServiceGrpc.MCAuthServiceFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service MCAuthService.
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 classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T> -
Method Summary
Modifier and TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<RefreshResponse> refresh(RefreshRequest request) Refreshes the authentication tokens for an existing Minecraft account.Methods inherited from class io.grpc.stub.AbstractFutureStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected MCAuthServiceGrpc.MCAuthServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<MCAuthServiceGrpc.MCAuthServiceFutureStub>
-
refresh
public com.google.common.util.concurrent.ListenableFuture<RefreshResponse> refresh(RefreshRequest request) Refreshes the authentication tokens for an existing Minecraft account. Used to renew expired access tokens using stored refresh tokens. For Microsoft accounts, this refreshes the Minecraft token, profile, and player certificates. For offline accounts, returns the account unchanged (offline accounts never expire). Errors: - NOT_FOUND: The specified instance does not exist - PERMISSION_DENIED: Caller lacks AUTHENTICATE_MC_ACCOUNT permission - INTERNAL: Refresh error (e.g., refresh token expired or revoked) Timeout: 2 minutes
-