# Anonymous login not working in Kibana 9.0.2

**URL:** <https://discuss.elastic.co/t/anonymous-login-not-working-in-kibana-9-0-2/379885>\
**Category:** Kibana\
**Created:** [July 8, 2025, 5:17am UTC](https://discuss.elastic.co/t/anonymous-login-not-working-in-kibana-9-0-2/379885 "2025-07-08T05:17:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanilmendonca](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@sanilmendonca](https://discuss.elastic.co/u/sanilmendonca)\
**Post date:** [July 8, 2025, 5:17am UTC](https://discuss.elastic.co/t/anonymous-login-not-working-in-kibana-9-0-2/379885/1 "2025-07-08T05:17:02Z")

</div>

As part of my Kibana config i have adde dbelow code,

```auto
xpack.security.authc.providers:
  anonymous.anonymous1:
    order: 0
    session:
      idleTimeout: 1y
  basic.basic1:
    order: 1

```

when i try to bring the servr up getting below error,

\u001b[37m\u001b[41m FATAL \u001b[49m\u001b[39m TypeError: Cannot read properties of undefined (reading 'apiKey')

any suggestion on how to fix it would be helpfull.
