首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何使用ManagementRealm在JBoss EAP6.2中保护web应用程序?

如何使用ManagementRealm在JBoss EAP6.2中保护web应用程序?
EN

Stack Overflow用户
提问于 2014-06-30 11:01:47
回答 1查看 1.6K关注 0票数 0

是否有一种方法可以使用与ManagementRealm相同的用户和角色配置来保护web应用程序?

我知道有一个安全域"java:/jaas/other“委托给ApplicationRealm。如何创建委托给ManagementRealm的类似安全域?

换句话说,我希望web应用程序能够被访问JBoss的管理控制台的相同用户访问。

我在运行域模式。

//编辑:

我能够通过使用登录模块RealmDirect和设置realm=ManagementRealm身份验证来设置引用管理领域的安全域,但是它没有选择用户角色。对于ApplicationRealm,完全相同的配置工作得很好。

EN

回答 1

Stack Overflow用户

发布于 2014-12-03 07:07:34

我也有过同样的挑战。在定义了引用" ManagementRealm“的安全域并在web.xml中定义角色之后,诀窍是将ManagementRealm配置为将组映射到角色:

授权map-groups-to-roles="true

代码语言:javascript
运行
复制
        <security-realm name="ManagementRealm">
            <authentication>
                <local default-user="$local" skip-group-loading="true"/>
                <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
            </authentication>
            <authorization map-groups-to-roles="true">
                <properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/>
            </authorization>
        </security-realm>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24488637

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档