You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Elena Neroslavskaya <ne...@rogers.com> on 2007/02/15 04:28:10 UTC

Re: Unsupported token - usernametoken

Hello,
 
I'm trying to modify ws-secureconversation sample 04 policy to include username token
by adding signedsupportingtoken to the policy.xml inside bootstrap policy.
 
<sp:SignedSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
<wsp:Policy>
<sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Once" />
</wsp:Policy>
</sp:SignedSupportingTokens>
 
But receinving exception below, is usernametoken supported in this version of axis?
To be sent with RST should username token be listed in assymetric binding?
 
Thank you
 
e doDeploy
     [java] INFO: Deploying module : rampart-1.1
     [java] org.apache.axis2.AxisFault: Unsupprted token in supporting tokens; n
ested exception is:
     [java]     org.apache.rampart.RampartException: Unsupprted token in support
ing tokens
     [java]     at org.apache.rampart.handler.RampartSender.invoke(RampartSender
.java:65)
     [java]     at org.apache.axis2.engine.Phase.invoke(Phase.java:382)
     [java]     at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:522
)
     [java]     at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:655)
     [java]     at org.apache.axis2.description.OutInAxisOperationClient.send(Ou
tInAxisOperation.java:237)
     [java]     at org.apache.axis2.description.OutInAxisOperationClient.execute
(OutInAxisOperation.java:202)
     [java]     at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClie
nt.java:579)
     [java]     at org.apache.rahas.client.STSClient.requestSecurityToken(STSCli
ent.java:126)
     [java]     at org.apache.rampart.util.RampartUtil.getToken(RampartUtil.java

Re: [Axis2] Unsupported token - usernametoken

Posted by Davanum Srinivas <da...@gmail.com>.
neros,

JIRA please!

-- dims

On 2/15/07, neros <ne...@rogers.com> wrote:
>
> Hi,
>
> it looks like a small bug in Rampart  BindingBuilder.addSignatureParts
> method
> which is examining token hashmap by retrieving entryset and comparing
> Hashmap.Entry to Rahas Token.
> Line 388:
>        EntrySet entrySet = tokenMap.entryset();
>
> When changing it to retrieve actual values stored in HashMap  - it works.
>
>        Collection entrySet = tokenMap.values();
>
>
> Is it possible please to include this fix in the next build ,if it makes
> sense?
>
> Thank you very much
>
>
>
>
>
> neros wrote:
> >
> > Hello,
> >
> > I'm trying to modify ws-secureconversation sample 04 policy to include
> > username token
> > by adding signedsupportingtoken to the policy.xml inside bootstrap policy.
> >
> > <sp:SignedSupportingTokens
> > xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
> > <wsp:Policy>
> > <sp:UsernameToken
> > sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Once"
> > />
> > </wsp:Policy>
> > </sp:SignedSupportingTokens>
> >
> > But receinving exception below, is usernametoken supported in this version
> > of axis?
> > To be sent with RST should username token be listed in assymetric binding?
> >
> > Thank you
> >
> > e doDeploy
> >      [java] INFO: Deploying module : rampart-1.1
> >      [java] org.apache.axis2.AxisFault: Unsupprted token in supporting
> > tokens; n
> > ested exception is:
> >      [java]     org.apache.rampart.RampartException: Unsupprted token in
> > support
> > ing tokens
> >      [java]     at
> > org.apache.rampart.handler.RampartSender.invoke(RampartSender
> > .java:65)
> >      [java]     at org.apache.axis2.engine.Phase.invoke(Phase.java:382)
> >      [java]     at
> > org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:522
> > )
> >      [java]     at
> > org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:655)
> >      [java]     at
> > org.apache.axis2.description.OutInAxisOperationClient.send(Ou
> > tInAxisOperation.java:237)
> >      [java]     at
> > org.apache.axis2.description.OutInAxisOperationClient.execute
> > (OutInAxisOperation.java:202)
> >      [java]     at
> > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClie
> > nt.java:579)
> >      [java]     at
> > org.apache.rahas.client.STSClient.requestSecurityToken(STSCli
> > ent.java:126)
> >      [java]     at
> > org.apache.rampart.util.RampartUtil.getToken(RampartUtil.java
> >
>
> --
> View this message in context: http://www.nabble.com/Re%3A-Unsupported-token---usernametoken-tf3231693.html#a8980276
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] Unsupported token - usernametoken

Posted by neros <ne...@rogers.com>.
Hi,

it looks like a small bug in Rampart  BindingBuilder.addSignatureParts 
method
which is examining token hashmap by retrieving entryset and comparing
Hashmap.Entry to Rahas Token.
Line 388:
       EntrySet entrySet = tokenMap.entryset();
       
When changing it to retrieve actual values stored in HashMap  - it works.

       Collection entrySet = tokenMap.values();
        

Is it possible please to include this fix in the next build ,if it makes
sense?

Thank you very much
               




neros wrote:
> 
> Hello,
>  
> I'm trying to modify ws-secureconversation sample 04 policy to include
> username token
> by adding signedsupportingtoken to the policy.xml inside bootstrap policy.
>  
> <sp:SignedSupportingTokens
> xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
> <wsp:Policy>
> <sp:UsernameToken
> sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Once"
> />
> </wsp:Policy>
> </sp:SignedSupportingTokens>
>  
> But receinving exception below, is usernametoken supported in this version
> of axis?
> To be sent with RST should username token be listed in assymetric binding?
>  
> Thank you
>  
> e doDeploy
>      [java] INFO: Deploying module : rampart-1.1
>      [java] org.apache.axis2.AxisFault: Unsupprted token in supporting
> tokens; n
> ested exception is:
>      [java]     org.apache.rampart.RampartException: Unsupprted token in
> support
> ing tokens
>      [java]     at
> org.apache.rampart.handler.RampartSender.invoke(RampartSender
> .java:65)
>      [java]     at org.apache.axis2.engine.Phase.invoke(Phase.java:382)
>      [java]     at
> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:522
> )
>      [java]     at
> org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:655)
>      [java]     at
> org.apache.axis2.description.OutInAxisOperationClient.send(Ou
> tInAxisOperation.java:237)
>      [java]     at
> org.apache.axis2.description.OutInAxisOperationClient.execute
> (OutInAxisOperation.java:202)
>      [java]     at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClie
> nt.java:579)
>      [java]     at
> org.apache.rahas.client.STSClient.requestSecurityToken(STSCli
> ent.java:126)
>      [java]     at
> org.apache.rampart.util.RampartUtil.getToken(RampartUtil.java
> 

-- 
View this message in context: http://www.nabble.com/Re%3A-Unsupported-token---usernametoken-tf3231693.html#a8980276
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org