auth

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package auth extends github.com/grpc-ecosystem/go-grpc-middleware/v2/interceptors/auth

Index

Constants

This section is empty.

Variables

View Source
var AuthFromMD = auth.AuthFromMD

AuthFromMD is a helper function for extracting the :authorization header from the gRPC metadata of the request.

Functions

func StreamServerInterceptor

func StreamServerInterceptor() []grpc.StreamServerInterceptor

StreamServerInterceptor returns a new stream server interceptors that performs per-request auth.

func UnaryServerInterceptor

func UnaryServerInterceptor() []grpc.UnaryServerInterceptor

UnaryServerInterceptor returns a new unary server interceptors that performs per-request auth.

Types

type ServiceAuthFunc added in v0.2.1

type ServiceAuthFunc interface {
	AuthFunc(ctx context.Context, fullMethodName string) (context.Context, error)
}

ServiceAuthFunc performs authentication per service.

Jump to

Keyboard shortcuts

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