5.3.2. 服务器端实施
服务器端实施与现有的远程命名实施类似,但具有 HTTP 传输。
要配置服务器,您必须在 undertow
子系统中使用的每个虚拟主机上启用 http-invoker
。这在标准配置中默认启用。如果禁用,您可以使用以下管理 CLI 命令重新启用它:
/subsystem=undertow/server=default-server/host=default-host/setting=http-invoker:add(http-authentication-factory=myfactory, path="/wildfly-services")
http-invoker
属性采用两个参数:默认为 /wildfly-services
的路径
和 http-authentication-factory
,必须是 Elytron http-authentication-factory 的
引用。
注意
任何旨在使用 http-authentication-factory
的部署都必须使用 Elytron 安全性和与指定 HTTP 身份验证工厂对应的相同安全域。