Skip to content

Commit 18ffe28

Browse files
author
Gustavo Oliveira
committed
fixes zmartzone#537: Incorrect Handling of Bearer Token with trailing space in openidc_get_bearer_access_token
1 parent 9b47502 commit 18ffe28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resty/openidc.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,7 @@ local function openidc_get_bearer_access_token(opts)
17241724
end
17251725

17261726
local access_token = header:sub(divider + 1)
1727-
if access_token == nil then
1727+
if access_token == "" then
17281728
err = "no Bearer access token value found"
17291729
log(ERROR, err)
17301730
return nil, err

0 commit comments

Comments
 (0)