MCPcopy
hub / github.com/golang-jwt/jwt / ExtractToken

Method ExtractToken

request/extractor.go:18–18  ·  view source on GitHub ↗
(*http.Request)

Source from the content-addressed store, hash-verified

16// If no token is present, you must return ErrNoTokenInRequest.
17type Extractor interface {
18 ExtractToken(*http.Request) (string, error)
19}
20
21// HeaderExtractor is an extractor for finding a token in a header.

Callers 7

ExampleHeaderExtractorFunction · 0.65
ExampleArgumentExtractorFunction · 0.65
ExtractTokenMethod · 0.65
ExtractTokenMethod · 0.65
ParseFromRequestFunction · 0.65
TestExtractorFunction · 0.65
TestBearerExtractorFunction · 0.65

Implementers 2

PostExtractionFilterrequest/extractor.go
BearerExtractorrequest/extractor.go

Calls

no outgoing calls

Tested by 4

ExampleHeaderExtractorFunction · 0.52
ExampleArgumentExtractorFunction · 0.52
TestExtractorFunction · 0.52
TestBearerExtractorFunction · 0.52