How can I map a user's principal in JBoss EAP 6?

Solution Verified - Updated -

Issue

I have a servlet into which I have injected an EJB. I login to my servlet and authenticate using the default "other" security-domain as say, "im_a_user". In my EJB however, I want to map "im_a_user" to my application user name - say, "im_a_user1". Can you please guide me on this?

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 6.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