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

Error when trying to log in via oauth2 #4513

Open
4 tasks done
SyntaxJuggler opened this issue Feb 11, 2025 · 2 comments
Open
4 tasks done

Error when trying to log in via oauth2 #4513

SyntaxJuggler opened this issue Feb 11, 2025 · 2 comments
Labels
status/triage Issues pending maintainers triage type/bug Something isn't working

Comments

@SyntaxJuggler
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 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)

I want to log into the Kafka UI using users from my own identity server using oauth2/oidc. I was directed to the login page and after login I get Invalid credentials. I don't really understand how the callback uri works here and what to specify since I don't use any existing vendors, I didn't find anything related to this in the documentation.

  spring:
    security:
      oauth2:
        client:
          registration:
            oauth:
              client-id: "$"
              client-secret: "$"
              scope: "openid,profile,email"
              client-name: "name"
              provider: oauth
              redirect-uri: "https://*/login/oauth2/code/name"
              authorization-grant-type: authorization_code
          provider:
            learnhub:
              authorization-uri: "https://*/oidc/auth"
              token-uri: "https://*/oidc/token"
              user-info-uri: "https://*/oidc/me"
              jwk-set-uri: "https://*/oidc/jwks"
              user-name-attribute: "sub"
  auth:
    type: oauth2

Expected behavior

Successful login using oauth2

Your installation details

Using helm chart kafka-ui/kafka-ui in kubernetes

Steps to reproduce

  spring:
    security:
      oauth2:
        client:
          registration:
            oauth:
              client-id: "$"
              client-secret: "$"
              scope: "openid,profile,email"
              client-name: "name"
              provider: oauth
              redirect-uri: "https://*/login/oauth2/code/name"
              authorization-grant-type: authorization_code
          provider:
            learnhub:
              authorization-uri: "https://*/oidc/auth"
              token-uri: "https://*/oidc/token"
              user-info-uri: "https://*/oidc/me"
              jwk-set-uri: "https://*/oidc/jwks"
              user-name-attribute: "sub"
  auth:
    type: oauth2

Screenshots

No response

Logs

No response

Additional context

No response

@SyntaxJuggler SyntaxJuggler added status/triage Issues pending maintainers triage type/bug Something isn't working labels Feb 11, 2025
Copy link

Hello there SyntaxJuggler! 👋

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. 👀

@germanosin
Copy link
Contributor

@SyntaxJuggler
@Haarolean and I are not maintaining this repository, and it hasn't received any updates or fixes for a while. We kindly suggest checking https://github.com/kafbat/kafka-ui instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/triage Issues pending maintainers triage type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants