Why does the DeploymentRolesMappingProvider not map my roles correctly in JBoss?

Solution Verified - Updated -

Issue

  • Why does the DeploymentRolesMappingProvider not map my roles correctly in JBoss?

  • I have added the DeploymentRolesMappingProvider in the login-config.xml as part of my login-module specification and added <security-role> mappings in jboss-web.xml in my web project, but the mappings do not appear to be happening. I am not able to get the expected result when calling request.isUserInRole().

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.