Skip to content

Commit 379bdea

Browse files
TheYkkaldas
authored andcommitted
docs: Added comment about TokenLookup
Signed-off-by: Kaan Karakaya <[email protected]>
1 parent 7846e3f commit 379bdea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

middleware/jwt.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ type (
5353
// Optional. Default value jwt.MapClaims
5454
Claims jwt.Claims
5555

56-
// TokenLookup is a string in the form of "<source>:<name>" that is used
56+
// TokenLookup is a string in the form of "<source>:<name>" or "<source>:<name>,<source>:<name>" that is used
5757
// to extract token from the request.
5858
// Optional. Default value "header:Authorization".
5959
// Possible values:
@@ -62,6 +62,9 @@ type (
6262
// - "param:<name>"
6363
// - "cookie:<name>"
6464
// - "form:<name>"
65+
// Multiply sources example:
66+
// - "header: Authorization,cookie: myowncookie"
67+
6568
TokenLookup string
6669

6770
// AuthScheme to be used in the Authorization header.

0 commit comments

Comments
 (0)