Can't log in Kibana

Dear all,

I have defined file realm and add it into elasticsearch.yml

But i can't log in kibana using any user having rights to log in: kibana, elastic etc.

Kibana, Elasticsearch version is 7.5.4

That is config of Elasticsearch:

xpack.security.enabled: true
#xpack.security.authc.accept_default_password: true

#xpack.security.http.ssl.enabled: true

xpack:
security:
authc:
realms:
file:
file1:
order: 0

What is the reason?

Do you have the users added to the file realm? can you show an example of how an user is defined?

Yes, i have added some users in file realm using API.

Also, i have changed passwords for built in users by
bin/elasticsearch-setup-passwords interactive

But currently i can't login into kibana gui using built in or added accounts.

Could you, please help me to fix this issue?

Can you help me?