【问题标题】:How to define custom principal class in Elytron WildFly 26.1?如何在 Elytron WildFly 26.1 中定义自定义主体类?
【发布时间】: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


    【解决方案1】:

    我也在寻找过去一个月的上述解决方案,我尝试了多种方法,但如果有人知道上述解决方案,请帮忙

    【讨论】:

      猜你喜欢
      • 2022-11-03
      • 2011-03-26
      • 2023-04-07
      • 2021-08-08
      • 1970-01-01
      • 2013-02-10
      • 2012-07-11
      • 2014-10-29
      • 1970-01-01
      相关资源
      最近更新 更多