Skip to content

Instantly share code, notes, and snippets.

@jschmid1
Last active November 4, 2022 13:52
Show Gist options
  • Select an option

  • Save jschmid1/cb3ed5c1de79d22b4bf8c8a7cc9710a2 to your computer and use it in GitHub Desktop.

Select an option

Save jschmid1/cb3ed5c1de79d22b4bf8c8a7cc9710a2 to your computer and use it in GitHub Desktop.
{
name = "jwks",
dao = "kong.plugins.jwks.daos.jwks",
primary_key = { "id" },
cache_key = { "kid", "set" },
endpoint_key = "name",
ttl = true,
fields = {
{
id = typedefs.uuid,
},
{
set = {
type = "foreign",
required = false,
reference = "jwk_sets",
on_delete = "cascade",
},
},
{
name = {
type = "string",
required = false,
unique = true,
},
},
{
kid = {
type = "string",
required = true,
},
},
{
jwk = jwk
},
{
tags = typedefs.tags,
},
{
created_at = typedefs.auto_timestamp_s,
},
{
updated_at = typedefs.auto_timestamp_s,
},
},
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment