Authorization via request header field

I’m deploying Frappe in a k8s environment, behind an nginx ingress. I use an upstream service within the cluster to authenticate users and it passes the authenticated username downstream in a header field (eg., X-remote-user). Does Frappe support this configuration? If so, is it possible to enable automatic user creation if the username does not exist?