[ https://issues.apache.org/jira/browse/RAMPART-178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12607565#action_12607565 ]
Stefan Lischke commented on RAMPART-178: ---------------------------------------- unfrotunatly this does not work, MessageContext.getCurrentMessageContext(); return null in PWCBHandler ;-( any other ideas? > Easily obtain UserNameToken information at the Service > ------------------------------------------------------ > > Key: RAMPART-178 > URL: https://issues.apache.org/jira/browse/RAMPART-178 > Project: Rampart > Issue Type: New Feature > Affects Versions: 1.4 > Reporter: Stefan Lischke > Assignee: Ruchith Udayanga Fernando > Priority: Trivial > > We talked about this feature in the ML [1] and the proposed way [2] is very > complicated. > So i propose to set the username (not the password) information as property > to the messageContext, to get it easily and quickly in the service. > I did this very easily myself: > In the PWCBHanlder > MessageContext msgCtx = MessageContext.getCurrentMessageContext(); > msgCtx.setProperty("username", pwcb.getIdentifer()); > [1] http://markmail.org/message/gya424dzg5hyid4w > [2] http://wso2.org/library/169 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.