Skip to content

Commit e3ce0d1

Browse files
committed
require accept_token_as starts with "cookie"
1 parent abc780a commit e3ce0d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resty/openidc.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@ local function openidc_get_bearer_access_token(opts)
12791279

12801280
local accept_token_as = opts.auth_accept_token_as or "header"
12811281

1282-
if accept_token_as:find("cookie") ~= nil then
1282+
if accept_token_as:find("cookie") == 1 then
12831283
return openidc_get_bearer_access_token_from_cookie(opts)
12841284
end
12851285

0 commit comments

Comments
 (0)