auth

package
v0.0.0-...-85cd7ee Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoTokenInRequest = errors.New("no token present in request")
)

Functions

This section is empty.

Types

type BasicExtractor

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

func (BasicExtractor) ExtractToken

func (e BasicExtractor) ExtractToken(getter Getter) (string, error)

type BearerExtractor

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

func (BearerExtractor) ExtractToken

func (e BearerExtractor) ExtractToken(getter Getter) (string, error)

type Extractor

type Extractor interface {
	ExtractToken(getter Getter) (string, error)
}

type Getter

type Getter interface {
	Get(string) string
}

Jump to

Keyboard shortcuts

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