79523806

Date: 2025-03-20 18:31:53
Score: 1
Natty:
Report link

A bit late but there are two separate issues here :

I followed one such guide/tutorial aswell, and they're all outdated or straight wrong (imo, likely GTP-written). This had me RTFM.

  1. The ENV variables "KEYCLOAK_USER" and "KEYCLOAK_PASSWORD" are no longer correct. Most tutorials you'll find will thus fail with recent versions of keycloak. From the documentation (https://www.keycloak.org/server/all-config?q=bootstrap) and (https://www.keycloak.org/server/configuration#_creating_the_initial_admin_user), you'll need to use
    • KC_BOOTSTRAP_ADMIN_USERNAME=<username>
    • KC_BOOTSTRAP_ADMIN_PASSWORD=<password>

This should allow you to connect using whatever user/pwd you provided.

  1. While I'm unsure about the cookies issue with only the provided info, it may have to do with you not serving over https. I believe working with http is only going to work in dev mode, not in production mode (for obvious security reasons). (https://www.keycloak.org/server/configuration#_starting_keycloak_in_development_mode)

Tldr : To specify you're in dev mode, in your docker-compose.yml, in the keycloak conf :

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Aekami