C# OJAI Client API
MapRDB.Driver.ClientAuthInterceptor Class Reference
Inheritance diagram for MapRDB.Driver.ClientAuthInterceptor:

Public Member Functions

 ClientAuthInterceptor (Dictionary< string, string > userCreds, Action pingCall)
 
override TResponse BlockingUnaryCall< TRequest, TResponse > (TRequest request, ClientInterceptorContext< TRequest, TResponse > context, BlockingUnaryCallContinuation< TRequest, TResponse > continuation)
 Intercepts a blocking invocation of a simple remote call. More...
 
override AsyncUnaryCall< TResponse > AsyncUnaryCall< TRequest, TResponse > (TRequest request, ClientInterceptorContext< TRequest, TResponse > context, AsyncUnaryCallContinuation< TRequest, TResponse > continuation)
 Intercepts an asynchronous invocation of a simple remote call. More...
 
override AsyncServerStreamingCall< TResponse > AsyncServerStreamingCall< TRequest, TResponse > (TRequest request, ClientInterceptorContext< TRequest, TResponse > context, AsyncServerStreamingCallContinuation< TRequest, TResponse > continuation)
 Intercepts an asynchronous invocation of a streaming remote call. More...
 

Private Member Functions

Metadata GetUserMetadata ()
 Compose authentication user metadata. More...
 
void SetToken (Metadata responseMetadata)
 Set JWT token from response metadata from server. More...
 

Private Attributes

string _token
 
Metadata _userCred
 
string _encodedUserCred
 
Action PingCall
 

Member Function Documentation

◆ AsyncServerStreamingCall< TRequest, TResponse >()

override AsyncServerStreamingCall<TResponse> MapRDB.Driver.ClientAuthInterceptor.AsyncServerStreamingCall< TRequest, TResponse > ( TRequest  request,
ClientInterceptorContext< TRequest, TResponse >  context,
AsyncServerStreamingCallContinuation< TRequest, TResponse >  continuation 
)

Intercepts an asynchronous invocation of a streaming remote call.

◆ AsyncUnaryCall< TRequest, TResponse >()

override AsyncUnaryCall<TResponse> MapRDB.Driver.ClientAuthInterceptor.AsyncUnaryCall< TRequest, TResponse > ( TRequest  request,
ClientInterceptorContext< TRequest, TResponse >  context,
AsyncUnaryCallContinuation< TRequest, TResponse >  continuation 
)

Intercepts an asynchronous invocation of a simple remote call.

◆ BlockingUnaryCall< TRequest, TResponse >()

override TResponse MapRDB.Driver.ClientAuthInterceptor.BlockingUnaryCall< TRequest, TResponse > ( TRequest  request,
ClientInterceptorContext< TRequest, TResponse >  context,
BlockingUnaryCallContinuation< TRequest, TResponse >  continuation 
)

Intercepts a blocking invocation of a simple remote call.

◆ GetUserMetadata()

Metadata MapRDB.Driver.ClientAuthInterceptor.GetUserMetadata ( )
private

Compose authentication user metadata.

◆ SetToken()

void MapRDB.Driver.ClientAuthInterceptor.SetToken ( Metadata  responseMetadata)
private

Set JWT token from response metadata from server.