Authentik + Home Assistant (No Network Authentication, No Header Authentication)

Here I started with a Guid to use Authentik with Applications that do not support SSO but use OAuth.

Because HA implements OAuth2 a bit difrently, I am having a hard time implementing the method. I am trying to find a way to fetch the necessary tokens from HA Server and the necessary Headers used to authenticate into the WebUI.

Any idea how to do it?