Skip to content

OAuth 2.0 service authentication #4500

Open
@fanfuvac

Description

@fanfuvac

Issue submitter TODO list

  • I've looked up my issue in FAQ
  • I've searched for an already existing issues here
  • I've tried running master-labeled docker image and the issue still persists there
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/triageIssues pending maintainers triagetype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions