auther

package
v0.0.0-...-d5aecf8 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientHeaderKey = "client-id"
	ClientSecretKey = "client-secret"
)

Variables

This section is empty.

Functions

func GrpcAuthStreamServerInterceptor

func GrpcAuthStreamServerInterceptor() grpc.StreamServerInterceptor

GrpcAuthStreamServerInterceptor returns a new unary server interceptor for auth.

func GrpcAuthUnaryServerInterceptor

func GrpcAuthUnaryServerInterceptor() grpc.UnaryServerInterceptor

GrpcAuthUnaryServerInterceptor returns a new unary server interceptor for auth.

Types

type Authentication

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

Authentication todo

func NewClientAuthentication

func NewClientAuthentication(clientId, clientSecret string) *Authentication

func (*Authentication) GetRequestMetadata

func (a *Authentication) GetRequestMetadata(context.Context, ...string) (
	map[string]string, error,
)

GetRequestMetadata todo

func (*Authentication) RequireTransportSecurity

func (a *Authentication) RequireTransportSecurity() bool

RequireTransportSecurity todo

func (*Authentication) WithClientCredentials

func (a *Authentication) WithClientCredentials(clientID, clientSecret string)

WithClientCredentials todo

Jump to

Keyboard shortcuts

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