mirror of
https://github.com/labstack/echo.git
synced 2025-07-15 01:34:53 +02:00
docs: Added comment about TokenLookup
Signed-off-by: Kaan Karakaya <yusufkaan142@gmail.com>
This commit is contained in:
@ -53,7 +53,7 @@ type (
|
|||||||
// Optional. Default value jwt.MapClaims
|
// Optional. Default value jwt.MapClaims
|
||||||
Claims jwt.Claims
|
Claims jwt.Claims
|
||||||
|
|
||||||
// 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
|
||||||
// to extract token from the request.
|
// to extract token from the request.
|
||||||
// Optional. Default value "header:Authorization".
|
// Optional. Default value "header:Authorization".
|
||||||
// Possible values:
|
// Possible values:
|
||||||
@ -62,6 +62,9 @@ type (
|
|||||||
// - "param:<name>"
|
// - "param:<name>"
|
||||||
// - "cookie:<name>"
|
// - "cookie:<name>"
|
||||||
// - "form:<name>"
|
// - "form:<name>"
|
||||||
|
// Multiply sources example:
|
||||||
|
// - "header: Authorization,cookie: myowncookie"
|
||||||
|
|
||||||
TokenLookup string
|
TokenLookup string
|
||||||
|
|
||||||
// AuthScheme to be used in the Authorization header.
|
// AuthScheme to be used in the Authorization header.
|
||||||
|
Reference in New Issue
Block a user