Baeldung/spring-security-oauth

Embedded Keycloak: HTTPS required

LybrialsGit opened this issue · 1 comments

I followed this guide: https://www.baeldung.com/keycloak-embedded-in-spring-boot-app

Keycloak is starting up fine but when I try to access the admin console the following is getting showed:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" class="login-pf"> <head> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="robots" content="noindex, nofollow"> <meta name="viewport" content="width=device-width,initial-scale=1"/> <title>Log in to Keycloak</title> <link rel="icon" href="/auth/resources/k8qvq/login/keycloak/img/favicon.ico" /> <link href="/auth/resources/k8qvq/common/keycloak/node_modules/patternfly/dist/css/patternfly.min.css" rel="stylesheet" /> <link href="/auth/resources/k8qvq/common/keycloak/node_modules/patternfly/dist/css/patternfly-additions.min.css" rel="stylesheet" /> <link href="/auth/resources/k8qvq/common/keycloak/lib/zocial/zocial.css" rel="stylesheet" /> <link href="/auth/resources/k8qvq/login/keycloak/css/login.css" rel="stylesheet" /> </head> <body class=""> <div class="login-pf-page"> <div id="kc-header" class="login-pf-page-header"> <div id="kc-header-wrapper" class=""><div class="kc-logo-text"><span>Keycloak</span></div></div> </div> <div class="card-pf "> <header class="login-pf-header"> <h1 id="kc-page-title"> We are sorry... </h1> </header> <div id="kc-content"> <div id="kc-content-wrapper"> <div id="kc-error-message"> <p class="instruction">HTTPS required</p> </div> </div> </div> </div> </div> </body> </html>

image

  1. It is not even rendering correctly, just showing this text
  2. It is saying "HTTPS required"

How can I access the admin console from your example?

image

Solved