return {
    name = "cookie-auth",
    fields = {
        {
            config = {
                type = "record",
                fields = {
                    {
                        auth_url = {
                            type = "string",
                            required = true
                        }
                    },
                    {
                        env_type = {
                            type = "string",
                            required = true
                        }
                    },
                    {
                        whitelist = {
                            type = "array",
                            elements = {
                                type = "record",
                                fields = {
                                    { path = { type = "string", required = true } },
                                    { methods = { type = "array", elements = { type = "string" } } }
                                }
                            },
                            default = {}
                        }
                    },
                    {
                        static_suffixes = {
                            type = "array",
                            elements = { type = "string" },
                            default = {}
                        }
                    },
                    {
                        cors_allow_origins = {
                            type = "array",
                            elements = { type = "string" },
                            default = {}
                        }
                    },
                    { timeout = { type = "number", default = 5000 } }
                }
            }
        }
    }
}
