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
Click to show internal directories.
Click to hide internal directories.