We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7846e3f commit 379bdeaCopy full SHA for 379bdea
middleware/jwt.go
@@ -53,7 +53,7 @@ type (
53
// Optional. Default value jwt.MapClaims
54
Claims jwt.Claims
55
56
- // TokenLookup is a string in the form of "<source>:<name>" that is used
+ // TokenLookup is a string in the form of "<source>:<name>" or "<source>:<name>,<source>:<name>" that is used
57
// to extract token from the request.
58
// Optional. Default value "header:Authorization".
59
// Possible values:
@@ -62,6 +62,9 @@ type (
62
// - "param:<name>"
63
// - "cookie:<name>"
64
// - "form:<name>"
65
+ // Multiply sources example:
66
+ // - "header: Authorization,cookie: myowncookie"
67
+
68
TokenLookup string
69
70
// AuthScheme to be used in the Authorization header.
0 commit comments