# API Key authentication configuration fragment
# Conditional: when auth_method == "api_key"

[[elements]]
default = "X-API-Key"
help = "HTTP header name for API key (e.g., 'X-API-Key', 'Authorization')"
name = "api_key_header_name"
nickel_path = ["provisioning", "security", "auth", "api_key", "header_name"]
prompt = "API key header name"
required = true
type = "text"
when = "auth_method == api_key"

[[elements]]
help = "Query parameter name for API key (e.g., 'api_key'). Leave empty to disable."
name = "api_key_query_param"
nickel_path = ["provisioning", "security", "auth", "api_key", "query_param"]
placeholder = "api_key"
prompt = "API key query parameter (optional)"
required = false
type = "text"
when = "auth_method == api_key"

[[elements]]
border_bottom = true
border_top = true
help = "API keys will need to be manually configured in the generated config file"
name = "api_key_note"
title = "ℹ️ API Keys Configuration"
type = "section_header"
when = "auth_method == api_key"
