Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keycloak realm login page is not appearing

Tags:

keycloak

I'm trying keycloak and it's not easy :) I've a problem with realm login page, login for admin panel is working perfect. I'm running keycloak with docker-compose.yml

version: '3.3'

services:
    postgres:
       image: postgres:12.2
       container_name: postgres
       environment:
         POSTGRES_DB: keycloak
         POSTGRES_USER: keycloak
         POSTGRES_PASSWORD: password

    keycloak:
      image: jboss/keycloak:10.0.1
      container_name: keycloak
      environment:
        DB_VENDOR: POSTGRES
        DB_ADDR: postgres
        DB_DATABASE: keycloak
        DB_USER: keycloak
        DB_PASSWORD: password
        KEYCLOAK_USER: admin
        KEYCLOAK_PASSWORD: password
        PROXY_ADDRESS_FORWARDING: "true"
      ports:
        - 8080:8080
      depends_on:
         - postgres

    mailhog:
      image: mailhog/mailhog:latest
      container_name: mailhog
      ports:
        - "8025:8025"

I'm starting it with command docker-compose up --build and everything is starting. I'm login as an admin and after that I'm creating realm with name myapp. After that I just want to see a realm login page, so I'm opening the link: http://localhost:8080/auth/realms/myapp/protocol/openid-connect/auth and what I see is We are sorry...

enter image description here

I was looking for some answers in google but I didn't find any. Do I need some additional profile config to make it work?

I also watch this but didn't help https://www.youtube.com/watch?v=duawSV69LDI here it seems working just like that.

Is any body have an idea what I can do?

Best regards!

like image 409
Piotr Żak Avatar asked Dec 06 '25 08:12

Piotr Żak


1 Answers

The error message suggests, that the URL to the admin console, to which you are trying to connect directly, is wrong. You can obtain the correct URL to the realm's console by

  1. Log in to the master realm
  2. Switch to your realm "myapp"
  3. Navigate to (Configure) Clients. You should see a client ID named "security-admin-console". (It should be created by default when you created the realm.)
    Use its URL.
like image 110
Sarge1060 Avatar answered Dec 08 '25 15:12

Sarge1060



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!