# Grafana 8 Live Streaming authentication (Web Socket) with API Key

**URL:** <https://community.grafana.com/t/grafana-8-live-streaming-authentication-web-socket-with-api-key/50352>\
**Category:** Grafana\
**Tags:** api\
**Created:** [July 13, 2021, 6:20am UTC](https://community.grafana.com/t/grafana-8-live-streaming-authentication-web-socket-with-api-key/50352 "2021-07-13T06:20:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![somesh](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@somesh](https://community.grafana.com/u/somesh)\
**Post date:** [July 13, 2021, 6:20am UTC](https://community.grafana.com/t/grafana-8-live-streaming-authentication-web-socket-with-api-key/50352/1 "2021-07-13T06:20:11Z")

</div>

Hey,

I was trying to access the Grafana account with user credentials and API Key. With the user credentials, it’s working as expected. After I logged in with the credentials it’s setting “grafana\_session” as an internal cookie and that is using in the “WebSocket” for authentication.

The Problem here is when i tried to do the same with “API Key” the WebSockets authentication is failing It’s because of the empty cookie. For the HTTP access you’re allowing to send the “API Key” with “Authorization: Bearer” token but how to bind the “API Key” for the websocket authentication.

We just stucked here. Any help

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/grafana/original/2X/e/ef5308cc58c9e5a13187b5012eb99f406928462f.png) [@system](https://community.grafana.com/u/system)\
**Post date:** [July 13, 2022, 6:20am UTC](https://community.grafana.com/t/grafana-8-live-streaming-authentication-web-socket-with-api-key/50352/2 "2022-07-13T06:20:35Z")

</div>

Closed on July 13, 2022, 6:20am UTC

This topic was automatically closed after 365 days. New replies are no longer allowed.
