【发布时间】:2022-07-15 20:45:58
【问题描述】:
在遗留系统中使用专用登录模块,自定义主体类在应用程序使用的安全域中定义,如下所示(JBoss 7.2)
<subsystem xmlns="urn:jboss:domain:security:1.2">
<security-domains>
<security-domain name="other-security-domain" cache-type="default">
<authentication>
<login-module code="com.xxx.OtherLoginModule" flag="requisite">
<module-option name="password-stacking" value="useFirstPass"/>
<module-option name="principalClass" value="com.xxx.OtherPrincipal"/>
</login-module>
在 Wildfly 26.1/Elytron 上应该如何进行相应的配置? 我查看了文档 26.1/WildFly_Elytron_Security,(特别是“18. Migrate Legacy Security to Elytron Security”一章)但没有找到解决方案。
其他问题:
- 文档指向子系统安全/安全域,但在 CLI 中我只看到安全管理(无法基于该文档运行旧版 jaas 模块)
- 没有任何自定义主体类的示例(基本问题)
【问题讨论】:
标签: security authentication wildfly principal elytron