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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content