# Authentication failed: missing or improperly formatted Authorization header: expected 'Authorization: Bearer secret\_token' or 'Authorization: ApiKey base64(API key ID:API key)'

**URL:** <https://discuss.elastic.co/t/authentication-failed-missing-or-improperly-formatted-authorization-header-expected-authorization-bearer-secret-token-or-authorization-apikey-base64-api-key-id-api-key/340321>\
**Category:** Elastic Observability\
**Tags:** docker\
**Created:** [August 8, 2023, 5:34am UTC](https://discuss.elastic.co/t/authentication-failed-missing-or-improperly-formatted-authorization-header-expected-authorization-bearer-secret-token-or-authorization-apikey-base64-api-key-id-api-key/340321 "2023-08-08T05:34:27Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)\
**Post date:** [August 29, 2023, 2:40am UTC](https://discuss.elastic.co/t/authentication-failed-missing-or-improperly-formatted-authorization-header-expected-authorization-bearer-secret-token-or-authorization-apikey-base64-api-key-id-api-key/340321/7 "2023-08-29T02:40:12Z")

</div>

Sorry for dropping the ball on this topic - I got busy and forgot about it.

If you're using the `ApmServer` kind, you don't need to configure the APM integration. The APM integration is only needed if you intend to run APM Server with Elastic Agent. When you're using the `ApmServer` kind, ECK is setting up the apm-server binary similar to what's shown in [APM Server binary | APM User Guide [8.9] | Elastic](https://www.elastic.co/guide/en/apm/guide/current/_apm_server_binary.html)

Let's keep discussing over in [How to get ECK APM to work with any type of agent at all!?! - #8 by axw](https://discuss.elastic.co/t/how-to-get-eck-apm-to-work-with-any-type-of-agent-at-all/341429/8)

---

_[View the full topic](https://discuss.elastic.co/t/authentication-failed-missing-or-improperly-formatted-authorization-header-expected-authorization-bearer-secret-token-or-authorization-apikey-base64-api-key-id-api-key/340321)._
