auth

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

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MDKeyAuth      = "authorization"
	MDKeyNamespace = "namespace"
)

Variables

This section is empty.

Functions

func AccessTokenFromContext

func AccessTokenFromContext(ctx context.Context) (string, string, error)

func AccessTokenFromMD

func AccessTokenFromMD(md metadata.MD) (string, string, error)

func HashToken

func HashToken(token string) string

func NamespaceFromContext

func NamespaceFromContext(ctx context.Context) (string, error)

func NamespaceFromMD

func NamespaceFromMD(md metadata.MD) (string, error)

func StreamClientInterceptor

func StreamClientInterceptor(accessToken string) grpc.StreamClientInterceptor

func StreamServerInterceptor

func StreamServerInterceptor(pgxPool *pgxpool.Pool) grpc.StreamServerInterceptor

func UnaryClientInterceptor

func UnaryClientInterceptor(accessToken string) grpc.UnaryClientInterceptor

func UnaryServerInterceptor

func UnaryServerInterceptor(pgxPool *pgxpool.Pool) grpc.UnaryServerInterceptor

Types

This section is empty.

Jump to

Keyboard shortcuts

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