[jboss-jira] [JBoss JIRA] (WFLY-3313) Websocket Auth - Container is not aware of the Principal

Markus D (JIRA) issues at jboss.org
Mon May 5 09:02:56 EDT 2014


Markus D created WFLY-3313:
------------------------------

             Summary: Websocket Auth - Container is not aware of the Principal
                 Key: WFLY-3313
                 URL: https://issues.jboss.org/browse/WFLY-3313
             Project: WildFly
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 8.1.0.CR1
            Reporter: Markus D
            Assignee: Jason Greene


The Websocket is protected by the web.xml. The session object of the callback object correctly returns the principal. 

When an EJB is called the callerPrincipal is always anonymous. 

@Resource
   private SessionContext ctx;

Principal callerPrincipal = ctx.getCallerPrincipal();

Running thread here:
https://community.jboss.org/thread/240617

Shouldn't the principal be propagated to the EJB container when a websocket callback method triggered?



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the jboss-jira mailing list