Failed to log in as user, specified in auth proxy header

I deployed a docker container with grafana. below is my settings

http_port = 3001
domain = localhost
root_url = %(protocol)s://%(domain)s:%(http_port)s/
disable_initial_admin_creation = true
auto_assign_org_role = Admin
viewers_can_edit = true
editors_can_admin = true
oauth_auto_login = true
**[auth.basic]**
enabled = false
**[auth.proxy]**
enabled = true
header_name = X-WEBAUTH-USER
header_property = admin
auto_sign_up = true
# Deprecated, use sync_ttl instead
ldap_sync_ttl = 60
sync_ttl = 60
whitelist =
headers =
enable_login_token = true

after i started the container, i couldn’t access via request
http://localhost:3001/api/dashboards/home
with header X-WEBAUTH-USER = admin.

the error log

Thanks for any help you can provide.

The header_property has to be either username or email.

Example curl command:

curl -H "X-WEBAUTH-USER: admin" http://localhost:3001/api/users

Docs here: https://grafana.com/docs/grafana/latest/auth/auth-proxy/#auth-proxy-authentication