provectus / kafka-ui

Open-Source Web UI for Apache Kafka Management
Apache License 2.0
9.77k stars 1.18k forks source link

OAuth 2.0 service authentication #4500

Open fanfuvac opened 2 hours ago

fanfuvac commented 2 hours ago

Issue submitter TODO list

Describe the bug (actual behavior)

We have configured OAuth 2.0 on kafka-ui, user login works correctly, but I am trying to implement authentication for our server to call API in an unattended way, and I am trying to use bearer token authentication, I am able to obtain client_credentials from our oauth server, but when I use this as a bearer token Authorization header for Kafka-ui, it redirects me to oauth login screen instead of returning the api content: image

Is there some other way how to programatically gain access to API with oauth enabled?

Expected behavior

Service would be granted access when providing bearer token from OAuth.

Your installation details

Version: 83b5a60 v0.7.2

Steps to reproduce

Sent request with this parameter to OAuth provider: image Use clientid and Secret as authentication for this request Get access_token as a response: image Use this Access token as describe in the description Kafka-ui redirects me to login screen instead of giving me access.

Screenshots

No response

Logs

No response

Additional context

No response

github-actions[bot] commented 2 hours ago

Hello there fanfuvac! 👋

Thank you and congratulations 🎉 for opening your very first issue in this project! 💖

In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. 👀