comparison mod_http_oauth2/mod_http_oauth2.lua @ 5198:2e8a7a0f932d

mod_http_oauth2: Fix response type config Wrong variable names
author Kim Alvefur <zash@zash.se>
date Fri, 03 Mar 2023 22:48:38 +0100
parents 6b63af56c8ac
children f48628dc83f1
comparison
equal deleted inserted replaced
5197:164a9875935b 5198:2e8a7a0f932d
289 end 289 end
290 end 290 end
291 291
292 -- "token" aka implicit flow is considered insecure 292 -- "token" aka implicit flow is considered insecure
293 local allowed_response_type_handlers = module:get_option_set("allowed_oauth2_response_types", {"code"}) 293 local allowed_response_type_handlers = module:get_option_set("allowed_oauth2_response_types", {"code"})
294 for handler_type in pairs(allowed_response_type_handlers) do 294 for handler_type in pairs(response_type_handlers) do
295 if not allowed_grant_type_handlers:contains(handler_type) then 295 if not allowed_response_type_handlers:contains(handler_type) then
296 grant_type_handlers[handler_type] = nil; 296 grant_type_handlers[handler_type] = nil;
297 end 297 end
298 end 298 end
299 299
300 function handle_token_grant(event) 300 function handle_token_grant(event)