Skip to content

FE: Auth: Logout button should consider context path #1248

@romanfurst

Description

@romanfurst

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)

I believe there is little misbehaviour in logout button behaviour.
If context path is configured e.g. SERVER_SERVLET_CONTEXT_PATH: /tt-test01 , kafbat-ui correctly listens on this path and everything works smoothly.
However, a small trouble occurs when trying to logout. After hiting the logout button, the action is triggered on /logout instead of /tt-test01/logout, which result in 404, as shown in below screenshots.
As auth method oauth-keycloak was used.

Image Image Image

Expected behavior

logout button action should use correct context path as shown below:

Image

Your installation details

  1. helm chart version: 1.3.0

  2. kafbat-ui versio: 1.5.1

  3. important setting sections:

SERVER_SERVLET_CONTEXT_PATH: /tt-test01

and

    auth:
      type: OAUTH2
      oauth2:
        client:
          keycloak:
            clientId: foo-bar-client
            clientSecret: *********
            scope: 'openid'
            issuer-uri: https://iam.foobar.com.com/auth/realms/myrelam
            user-name-attribute: preferred_username
            client-name: keycloak
            provider: keycloak
            custom-params:
              type: oauth

Steps to reproduce

install kafba-ui with SERVER_SERVLET_CONTEXT_PATH set. Login and then logout.

Screenshots

No response

Logs

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions