Anonymous user cannot log in

Hi Team,
I added an anonymous user "development", but it cannot log in due to security error.

[security_exception Root causes: security_exception: unable to authenticate user [development] for REST request [/_security/_authenticate]]: unable to authenticate user [development] for REST request [/_security/_authenticate]
Error: [security_exception
	Root causes:
		security_exception: unable to authenticate user [development] for REST request [/_security/_authenticate]]: unable to authenticate user [development] for REST request [/_security/_authenticate]
    at login_form_LoginForm.loginWithSelector (https://kibana.newweb.com/8aa0b59da12c/bundles/plugin/security/1.0.0/security.chunk.6.js:3:29606)

Here is configuration in elasticsearch.yml:

xpack.security.authc:
  anonymous:
    username: development
    roles: Development
    authz_exception: true

And configuration in kibana.yml file

xpack.security.authc.providers:
  basic.basic1:
    order: 0
  anonymous.anonymous1:
    order: 1
    credentials:
      username: "development"
      password: "development"

What can I check?
Thank you.

I removed configuration in elasticsearch.yml, then it was fixed.

1 Like