client_auth

package
v0.0.0-...-7d3e243 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupOAuth

func SetupOAuth(config sections.OAuthConfigurator) ([]grpc.DialOption, error)

SetupOAuth builds []grpc.DialOption with OAuth2 support from provided configuration

func SetupOTP

func SetupOTP(config sections.OTPConfigurator) ([]grpc.DialOption, error)

SetupOTP builds []grpc.DialOption with Custom Token support from provided configuration

Types

type OTPPerRPCCredentialsImplementation

type OTPPerRPCCredentialsImplementation struct {
	// contains filtered or unexported fields
}

OTPPerRPCCredentialsImplementation specifies custom tokens credentials It has to export PerRPCCredentials interface

func NewOTPPerRPCCredentialsImplementation

func NewOTPPerRPCCredentialsImplementation(server string, client string) OTPPerRPCCredentialsImplementation

NewOTPPerRPCCredentialsImplementation creates new custom token credentials implementation

func (OTPPerRPCCredentialsImplementation) GetRequestMetadata

func (O OTPPerRPCCredentialsImplementation) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)

GetRequestMetadata is function of credentials.PerRPCCredentials

func (OTPPerRPCCredentialsImplementation) RequireTransportSecurity

func (O OTPPerRPCCredentialsImplementation) RequireTransportSecurity() bool

RequireTransportSecurity is function of credentials.PerRPCCredentials

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL