kafka-ui icon indicating copy to clipboard operation
kafka-ui copied to clipboard

OAuth 2.0 service authentication

Open fanfuvac opened this issue 11 months ago • 3 comments

Issue submitter TODO list

  • [X] I've looked up my issue in FAQ
  • [X] I've searched for an already existing issues here
  • [X] I've tried running master-labeled docker image and the issue still persists there
  • [X] I'm running a supported version of the application which is listed here

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

fanfuvac avatar Nov 08 '24 15:11 fanfuvac