Skip to content

Commit 74b01ad

Browse files
steveoliveroowl
authored andcommitted
Update @return values of basic-auth.access:retrieve_credentials
Update the docblock of basic-auth.access:retrieve_credentials to reflect the username and password values returned.
1 parent 36db980 commit 74b01ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kong/plugins/basic-auth/access.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ local _M = {}
2626
--
2727
-- @param request ngx request object
2828
-- @param {table} conf Plugin config
29-
-- @return {string} public_key
30-
-- @return {string} private_key
29+
-- @return {string} username
30+
-- @return {string} password
3131
local function retrieve_credentials(header_name, conf, header)
3232
local username, password
3333
local authorization_header = header or kong.request.get_header(header_name)

0 commit comments

Comments
 (0)