Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (23 sloc) 748 Bytes
local typedefs = require "kong.db.schema.typedefs"
return {
name = "key-auth",
fields = {
{ consumer = typedefs.no_consumer },
{ protocols = typedefs.protocols_http },
{ config = {
type = "record",
fields = {
{ key_names = {
type = "array",
required = true,
elements = typedefs.header_name,
default = { "apikey" },
}, },
{ hide_credentials = { type = "boolean", default = false }, },
{ anonymous = { type = "string", uuid = true, legacy = true }, },
{ key_in_body = { type = "boolean", default = false }, },
{ run_on_preflight = { type = "boolean", default = true }, },
},
}, },
},
}
You can’t perform that action at this time.