Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth 2.0 Service-to-service authentication #659

Open
4 tasks done
fanfuvac opened this issue Nov 13, 2024 · 2 comments
Open
4 tasks done

OAuth 2.0 Service-to-service authentication #659

fanfuvac opened this issue Nov 13, 2024 · 2 comments
Labels
area/auth App authentication related issues scope/backend Related to backend changes status/triage/completed Automatic triage completed type/enhancement En enhancement/improvement to an already existing feature

Comments

@fanfuvac
Copy link

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 main-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, interactive user login works correctly, but I am trying to implement authentication for our server to call API in an unattended way (service to service), 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

10d4a11
11/12/2024, 14:20:31

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 fanfuvac added status/triage Issues pending maintainers triage type/bug Something isn't working labels Nov 13, 2024
@kapybro kapybro bot added status/triage/manual Manual triage in progress status/triage/completed Automatic triage completed and removed status/triage Issues pending maintainers triage labels Nov 13, 2024
Copy link

Hi fanfuvac! 👋

Welcome, and thank you for opening your first issue in the repo!

Please wait for triaging by our maintainers.

As development is carried out in our spare time, you can support us by sponsoring our activities or even funding the development of specific issues.
Sponsorship link

If you plan to raise a PR for this issue, please take a look at our contributing guide.

@Haarolean
Copy link
Member

This is not possible via authorization_code flow which is used by kafka-ui, to make this work we need to act as a resource server as well.

@Haarolean Haarolean added type/enhancement En enhancement/improvement to an already existing feature scope/backend Related to backend changes and removed type/bug Something isn't working status/triage/manual Manual triage in progress labels Nov 14, 2024
@Haarolean Haarolean moved this to Backlog in Housekeeping Nov 14, 2024
@Haarolean Haarolean added the area/auth App authentication related issues label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/auth App authentication related issues scope/backend Related to backend changes status/triage/completed Automatic triage completed type/enhancement En enhancement/improvement to an already existing feature
Projects
Status: Backlog
Development

No branches or pull requests

2 participants