Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save jschmid1/c3975d96cf3f1ea3360a999e536dd692 to your computer and use it in GitHub Desktop.
{
name = "jwk_sets",
dao = "kong.plugins.jwks.daos.jwk_sets",
primary_key = { "id" },
cache_key = { "name" },
endpoint_key = "name",
admin_api_name = "jwk-sets",
ttl = true,
fields = {
{
id = typedefs.uuid,
},
{
name = {
type = "string",
required = false,
unique = true,
},
},
{
urls = {
type = "set",
required = false,
elements = typedefs.url,
},
},
{
jwk_ttl = {
type = "integer",
required = false,
},
},
{
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