jwt/request
Hugo fdaf0eb0e0
Implement a BearerExtractor (#226)
* Implement a BearerExtractor

This is a rather common extractor; it extracts the JWT from the HTTP
Authorization header, expecting it to include the "Bearer " prefix.

This patterns is rather common and this snippet is repeated in enough
applications that it's probably best to just include it upstream and
allow reusing it.

* Ignore case-sensitivity for "Bearer"
2022-08-19 13:59:36 +02:00
..
doc.go added documentation 2016-06-06 16:55:41 -07:00
extractor.go Implement a BearerExtractor (#226) 2022-08-19 13:59:36 +02:00
extractor_example_test.go a few examples and some documentation cleanup 2016-06-06 17:45:30 -07:00
extractor_test.go Implement a BearerExtractor (#226) 2022-08-19 13:59:36 +02:00
oauth2.go Adds go module support /v4 (#41) 2021-08-03 15:51:01 +02:00
request.go Adds go module support /v4 (#41) 2021-08-03 15:51:01 +02:00
request_test.go Adjusted `parser_test.go` to include RSA and ECDSA tokens (#106) 2021-09-24 21:32:29 +02:00