启用对Keycloak的远程访问 [英] Enabling remote access to Keycloak

查看:506
本文介绍了启用对Keycloak的远程访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Keycloak授权服务器来管理我的应用程序权限.但是,我发现独立服务器只能在本地访问.

I'm using the Keycloak authorization server in order to manage my application permissions. However, I've found out the standalone server can be accessed locally only.

http://localhost:8080/auth有效,但http://myhostname:8080/auth无效.此问题不允许从内部网络访问服务器.

http://localhost:8080/auth works, but not it does http://myhostname:8080/auth. This issue doesn't permit accessing the server from the internal network.

推荐答案

独立的Keycloak服务器运行在JBoss Wildfly实例的顶部,并且出于安全原因,该服务器默认不允许从外部访问它(应该是仅适用于管理控制台,但在使用Keycloak的情况下,似乎会影响每个网址).必须使用-b=0.0.0.0选项启动它才能启用它.

The standalone Keycloak server runs on the top of a JBoss Wildfly instance and this server doesn't allow accessing it externally by default, for security reasons (it should be only for the administration console, but seems to affect every url in case of Keycloak). It has to be booted with the -b=0.0.0.0 option to enable it.

但是,如果您的Wildfly在远程计算机上运行,​​而您尝试 通过网络的IP地址访问您的管理页面 或主机名,例如,在 http://54.94.240.170:8080/ 可能会看到一个优美的此网页无法使用"错误, 换句话说,Wildfly说:不,谢谢,我不允许请求 而不是我本地机器上的其他人."

However, if your Wildfly is running on a remote machine and you try to access your administrative page through the network by it’s IP address or hostname, let’s say, at http://54.94.240.170:8080/, you will probably see a graceful This webpage is not available error, in another words, Wildfly said "No, thanks, I’m not allowing requests from another guys than the ones at my local machine".

另请参见:

  • Enable Wildfly remote access
  • Wildfly remotely access administration console doesnt work

这篇关于启用对Keycloak的远程访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆