We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42cf22f commit 93890a6Copy full SHA for 93890a6
src/lua/api-gateway/validation/oauth2/oauthTokenValidator.lua
@@ -171,8 +171,8 @@ function _M:validateOAuthToken(validation_config)
171
validation_config = validation_config or {}
172
validation_config.RESPONSES = validation_config.RESPONSES or RESPONSES;
173
174
- local oauth_token = validation_config.authtoken or ngx.var.authtoken
175
local oauth_host = ngx.var.oauth_host
+ local oauth_token = validation_config.authtoken or ngx.var.authtoken
176
177
if oauth_token == nil or oauth_token == "" then
178
return validation_config.RESPONSES.MISSING_TOKEN.error_code, cjson.encode(validation_config.RESPONSES.MISSING_TOKEN)
0 commit comments