Skip to content

Error when trying to log in via oauth2 #4513

Open
@SyntaxJuggler

Description

@SyntaxJuggler

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

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