Thanks to visit codestin.com
Credit goes to github.com

Skip to content

authBaseUrl error on different hostname-admin-url, hostname-url #19070

@thundercost

Description

@thundercost

Before reporting an issue

  • I have searched existing issues
  • I have reproduced the issue with the latest release

Area

account/api

Describe the bug

On keycloak 21.0.1, we have hostname-admin-url, hostname-url configured with different values e.g
--hostname-admin-url=admin.example.com
--hostname-url=auth.example.com
The above urls are configured as virtualhosts on reverse proxy
When I create a new realm, the default value ${authBaseUrl} is configured for all the clients.
The value of ${authBaseUrl} is always the value of hostname-admin-url, not hostname-url

Version

21.0.1

Expected behavior

The value of ${authBaseUrl} is the hostname-url

Actual behavior

The value of ${authBaseUrl} is the hostname-admin-url

How to Reproduce?

  1. Start keycloak 21.0.1 with different hostname-admin-url, hostname-url
  2. Use the hostname-admin-url to login and configure a new realm
  3. Check on any client that ${authBaseUrl} is configured as Root URL
  4. Confirm that ${authBaseUrl} is resolved to hostname-admin-url

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions