Skip to content

Commit

Permalink
remove verify by bkauth access_token
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-smile committed Sep 27, 2023
1 parent f3544e3 commit 1110f16
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/apisix/editions/ee/plugins/bk-cache/access-token.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,15 @@ local access_token_lrucache = core.lrucache.new(
local _M = {}

local function get_access_token(access_token)
local bkauth_token, err = bkauth_component.verify_access_token(access_token)
if bkauth_token ~= nil then
return {
token = access_token_define.new(bkauth_token.bk_app_code, bkauth_token.username, bkauth_token.expires_in),
}
end
local err
err = "authentication based on access_token is not supported"

-- local bkauth_token, err = bkauth_component.verify_access_token(access_token)
-- if bkauth_token ~= nil then
-- return {
-- token = access_token_define.new(bkauth_token.bk_app_code, bkauth_token.username, bkauth_token.expires_in),
-- }
-- end

if ssm_component.is_configured() then
local ssm_token
Expand Down

0 comments on commit 1110f16

Please sign in to comment.