21.287. Class GrpcAuthService

Namespace: ArmoniK.Core.Common.gRPC.Services
Assembly: ArmoniK.Core.Common.dll

Service for authentication management.

[Authorize(AuthenticationSchemes = "ArmoniKAuthenticationScheme")]
public class GrpcAuthService : Authentication.AuthenticationBase

21.287.1. Inheritance

object ← Authentication.AuthenticationBase ← GrpcAuthService

21.287.2. Inherited Members

Authentication.AuthenticationBase.GetCurrentUser(GetCurrentUserRequest, ServerCallContext), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

21.287.3. Constructors

21.287.3.1. GrpcAuthService(IOptionsMonitor<AuthenticatorOptions>, FunctionExecutionMetrics<GrpcAuthService>)

Initializes a new instance of the class.

public GrpcAuthService(IOptionsMonitor<AuthenticatorOptions> options, FunctionExecutionMetrics<GrpcAuthService> meter)

21.287.3.1.1. Parameters

options IOptionsMonitor<AuthenticatorOptions>

The options monitor for authenticator configuration.

meter FunctionExecutionMetrics<GrpcAuthService>

The metrics object for function execution.

21.287.4. Methods

21.287.4.1. GetCurrentUser(GetCurrentUserRequest, ServerCallContext)

Get current user

public override Task<GetCurrentUserResponse> GetCurrentUser(GetCurrentUserRequest request, ServerCallContext context)

21.287.4.1.1. Parameters

request GetCurrentUserRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

21.287.4.1.2. Returns

Task<GetCurrentUserResponse>

The response to send back to the client (wrapped by a task).