Package proto.rpc.v1
Class ExternalAuthServiceGrpc.ExternalAuthServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<ExternalAuthServiceGrpc.ExternalAuthServiceStub>
proto.rpc.v1.ExternalAuthServiceGrpc.ExternalAuthServiceStub
- Enclosing class:
- ExternalAuthServiceGrpc
public static final class ExternalAuthServiceGrpc.ExternalAuthServiceStub
extends io.grpc.stub.AbstractAsyncStub<ExternalAuthServiceGrpc.ExternalAuthServiceStub>
A stub to allow clients to do asynchronous rpc calls to service ExternalAuthService.
An ExternalAuthService is intended to be used as a means to perform application level authentication but for an external entity that it is responsible for handling auth for. An example of its use would be for a entity that only trusts an external source to perform authentication for it. Its sole AuthenticateTo method should be used prior to any other services that the external entity's gRPC server has to offer.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
authenticateTo
(Auth.AuthenticateToRequest request, io.grpc.stub.StreamObserver<Auth.AuthenticateToResponse> responseObserver) AuthenticateTo attempts to allow the caller to authenticate to another entity.build
(io.grpc.Channel channel, io.grpc.CallOptions callOptions) Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStub
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected ExternalAuthServiceGrpc.ExternalAuthServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<ExternalAuthServiceGrpc.ExternalAuthServiceStub>
-
authenticateTo
public void authenticateTo(Auth.AuthenticateToRequest request, io.grpc.stub.StreamObserver<Auth.AuthenticateToResponse> responseObserver) AuthenticateTo attempts to allow the caller to authenticate to another entity. The resulting response contains an access token with the subject as the calling entity, the audience as the other entity, and the issuer as the provider of this service. This token should be used for all future RPC requests to the other entity on the services it provides. This assumes that the caller is already authenticated to the server implementing this service.
-