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

Skip to content

Admin Console uses a wrong URL type for auth server #29641

@vmuzikar

Description

@vmuzikar

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

The Admin Console seems to be using the admin URL type instead of frontend URL type when configuring auth server URL in the JS adapter.

Version

main

Regression

  • The issue is a regression

Expected behavior

When not logged in, the Admin Console should redirect the user to the login page using frontend URL.

Actual behavior

When not logged in, the Admin Console redirects the user to the login page using admin URL.

How to Reproduce?

  1. Start the server as:
kc.sh start-dev --hostname=http://127.0.0.1.nip.io:8080 --hostname-admin=http://admin.127.0.0.1.nip.io:8080
  1. Access: http://127.0.0.1.nip.io:8080/admin
  2. Browser is redirected to login page at http://admin.127.0.0.1.nip.io:8080/realms/master/protocol/openid-connect/auth?...

This behaviour is incorrect. Login flow needs to be always executed at frontend URL, in this case http://127.0.0.1.nip.io:8080.

Anything else?

This caused by e28aa90.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions