Skip to content

IdP redirect URL shows hostname_admin #31244

@kochen

Description

@kochen

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

admin/ui

Describe the bug

We are using a dedicated hostname-admin URL.
When creating a new IdP (i,e SSO with clients' AD), we have to share the redirect URL. The URL contains the admin url and not the frontend url.

Version

25.0.1

Regression

  • The issue is a regression

Expected behavior

Frontend/Backend URL should be used to expose URLs and not the Administration URL.

Keycloak v25.0.0 works as expected!

Actual behavior

The URL contains the admin url and not the frontend url.

How to Reproduce?

Running keycloak 25.0.1

services:
  keycloak:
    image: quay.io/keycloak/keycloak:25.0.1
    command: ["start-dev"]
    restart: unless-stopped
    environment:
      KEYCLOAK_ADMIN: admin
      KEYCLOAK_ADMIN_PASSWORD: password
      KC_HOSTNAME: http://localhost:8081
      KC_HOSTNAME_ADMIN: http://localhost:8082
    ports:
      - 8081:8080
      - 8082:8080
  • browse to http://localhost:8082 <- the admin console URL
  • Go to Identity providers (bottom left main menu)
  • create a new Identity Provider - doesn't matter which type (all have the same issue)
  • Observe the Redirect URL:
    image
    (shows the admin hostname)

Running keycloak 25.0.0

services:
  keycloak:
    image: quay.io/keycloak/keycloak:25.0.0
    command: ["start-dev"]
    restart: unless-stopped
    environment:
      KEYCLOAK_ADMIN: admin
      KEYCLOAK_ADMIN_PASSWORD: password
      KC_HOSTNAME: http://localhost:8081
      KC_HOSTNAME_ADMIN: http://localhost:8082
    ports:
      - 8081:8080
      - 8082:8080
  • browse to http://localhost:8082 <- the admin console URL
  • Go to Identity providers (bottom left main menu)
  • create a new Identity Provider - doesn't matter which type (all have the same issue)
  • Observe the Redirect URL:
    image
    (shows the frontend hostname)

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions