I want a request package for parsing JWTs directly from http.Request values without hand-extracting the…
I want a request package for parsing JWTs directly from http.Request values without hand-extracting the…: a task in MiMo-V2.6-RL-harbor-code: MiMo-V2.6-RL Code (Harbor) (Harbor dataset). I need an Extractor interface with ExtractToken( http.Request) (string, error) and a shared ErrNoTokenInRequest…
The task
I need an `Extractor` interface with `ExtractToken(*http.Request) (string, error)` and a shared `ErrNoTokenInRequest` error for the no-token case. `HeaderExtractor{"X-Token"}` should return the first non-empty matching header value, so a request with `X-Token: abc.def.ghi` returns `"abc.def.ghi", nil`; with none of…
Part of FineEnvs/MiMo-V2.6-RL-harbor-code.