Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow disabling welcome page #14935

Open
alexted opened this issue Oct 17, 2022 · 4 comments
Open

Allow disabling welcome page #14935

alexted opened this issue Oct 17, 2022 · 4 comments
Labels
area/dist/quarkus kind/enhancement Categorizes a PR related to an enhancement status/triage

Comments

@alexted
Copy link

alexted commented Oct 17, 2022

Describe the bug

The new distribution of Keycloak that is powered by Quarkus does not have a standalone.xml file in order to achieve this purpose.

Version

19.0.3

Expected behavior

On Quarkus we'd probably want this to be exposed as a feature, something like --features-disabled=welcome.

Actual behavior

there is no such possibility at all

How to Reproduce?

go to path /

Anything else?

#10467

@alexted alexted added kind/bug Categorizes a PR related to a bug status/triage labels Oct 17, 2022
@stianst stianst added kind/enhancement Categorizes a PR related to an enhancement and removed kind/bug Categorizes a PR related to a bug labels Oct 17, 2022
@stianst stianst changed the title Lost the ability to hide the welcome page Allow disabling welcome page Oct 17, 2022
@stianst
Copy link
Contributor

stianst commented Oct 18, 2022

Ability to disable welcome pages with features would be a nice addition, but in the meantime it is possible to create a custom welcome theme to make it show something else, or even just a blank page.

One point here is disabling welcome page would result in a 404 page, which perhaps is not so nice and maybe really a better solution is a custom theme?

@alexted
Copy link
Author

alexted commented Oct 18, 2022

Now our devops has blocked in Nginx the root path of KC, but leave access to the subpaths.

@mkopeyka
Copy link

mkopeyka commented Nov 2, 2022

I have fixed it via custom theme:
keycloak-20.0.0\themes\keycloak\welcome\index.ftl

The index.ftl:

<html>
<head>
    <meta http-equiv="refresh" content="0; url=/auth/" />
    <meta name="robots" content="noindex, nofollow">
    <script type="text/javascript">
        window.location.href = "/auth/admin/my-realm/console"
    </script>
</head>
<body>
    If you are not redirected automatically, follow this <a href='/auth/admin/my-realm/console'>link</a>.
</body>
</html>

@mkopeyka
Copy link

mkopeyka commented Nov 2, 2022

The last unsolved issue with welcome theme is message Resource not found in case user open host without /auth. It would be nice to redirect user to login page somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dist/quarkus kind/enhancement Categorizes a PR related to an enhancement status/triage
Projects
None yet
Development

No branches or pull requests

3 participants