MCPcopy Create free account
hub / github.com/koding/kite / Extractor

Struct Extractor

kitekey/kitekey.go:104–107  ·  view source on GitHub ↗

Extractor is used to extract kontrol key from JWT token.

Source from the content-addressed store, hash-verified

102
103// Extractor is used to extract kontrol key from JWT token.
104type Extractor struct {
105 Token *jwt.Token
106 Claims *KiteClaims
107}
108
109// Extract is a keyFunc argument for jwt.Parse function.
110func (e *Extractor) Extract(token *jwt.Token) (interface{}, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected