Skip to content

Commit 29727ff

Browse files
leestana01aldas
authored andcommitted
fix(middleware): correct documented KeyAuth KeyLookup default
DefaultKeyAuthConfig sets KeyLookup to "header:Authorization:Bearer " in v5, but the KeyAuthConfig.KeyLookup comment still shows the v4 default of "header:Authorization". Update the comment to match. Signed-off-by: leestana01 <leestana01@naver.com>
1 parent dac56bc commit 29727ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

middleware/key_auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type KeyAuthConfig struct {
2222

2323
// KeyLookup is a string in the form of "<source>:<name>" or "<source>:<name>,<source>:<name>" that is used
2424
// to extract key from the request.
25-
// Optional. Default value "header:Authorization".
25+
// Optional. Default value "header:Authorization:Bearer ".
2626
// Possible values:
2727
// - "header:<name>" or "header:<name>:<cut-prefix>"
2828
// `<cut-prefix>` is argument value to cut/trim prefix of the extracted value. This is useful if header

0 commit comments

Comments
 (0)