Keycloak 登录提示

At this point, you have two options; 1) Install HTTPS in Wildfly or 2) Tunnel via SSH into the remote machine and proxy your browser through it, go to the admin console and turn off the SSL requirement (Realm Settings -> Login -> Require SSL). This works because SSL is not required for local connections.

Keycloak SSL 登录要求

Keycloak 用私有地址可以不使用 SSL 登录方式,如果用公网就需要用 SSL 登录方式。

解决方案:设置某 Realm 不强制使用 SSL

启动 Keycloak

1
./standalone.sh -b 0.0.0.0 -bmanagement 0.0.0.0

添加账号

1
./add-user-keycloak -r master -u <username> -p <password>

管理员登录

1
./kcadm.sh config credentials --server http://localhost:8080/auth --realm master --user admin

管理员设置某 Realm 不强制使用 SSL

1
./kcadm.sh update realms/master -s sslRequired=NONE