ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » UsernameToken with WS-SECURITY

Post new topic  Reply to topic
 UsernameToken with WS-SECURITY « View previous topic :: View next topic » 
Author Message
PEPERO
PostPosted: Thu Mar 13, 2014 1:45 am    Post subject: UsernameToken with WS-SECURITY Reply with quote

Disciple

Joined: 30 May 2011
Posts: 177

Hi all;
I have a web service provider flow in which authentication using UsernameToken and WS-Security using policy set and policy set bindings are activated.
When i turn off the authentication, the signed and encrypted message is received (decrypted and verified). In this case the response is also signed and encrypted successfully.
When turning off the ws-security and activating authentication , employing an LDAP server, every thing is ok too.
But when i turn on ws-security and authentication, it seems that authentication is going to be checked before message decryption because an error code 'CWWSS5509E' is issued which implies :

Quote:

A security token whose type is [http://docs.oasis-open.org/wss/2004/01/oasis-2000401-wss-username-token-profile-1.0#UsernameToken] is required.


Please help me to resolve the problem.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Mar 13, 2014 4:38 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Where is the username token? In the Ws-Security header? Or in the HTTP headers?

If it is the HTTP header, I suspect you will have to use an HTTP node instead of a SOAP node to do the authentication, and then use a SecurityPep node to do WS-Security.

But it would be very odd for it to be in the HTTP header.
Back to top
View user's profile Send private message
PEPERO
PostPosted: Thu Mar 13, 2014 4:46 am    Post subject: Reply with quote

Disciple

Joined: 30 May 2011
Posts: 177

It's within the soap Header, under the Security tag.
Quote:

.
.
.
<soapenv:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken>
<wsse:Username xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="unt_907818524">wmbuser1</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">user1pw</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
.
.
.
.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Mar 13, 2014 4:54 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Ok.

Sounds like a product issue. I'd suggest a PMR.
Back to top
View user's profile Send private message
ganesh
PostPosted: Thu Mar 13, 2014 9:32 am    Post subject: Reply with quote

Master

Joined: 18 Jul 2010
Posts: 294

Code:
<wsse:UsernameToken wsu:Id="UsernameToken-1" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
          <wsse:Username>*****</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">******</wsse:Password>
         </wsse:UsernameToken>


Try the above format.
Back to top
View user's profile Send private message
PEPERO
PostPosted: Sat Mar 15, 2014 12:17 am    Post subject: Reply with quote

Disciple

Joined: 30 May 2011
Posts: 177

Nothing was changed.
Back to top
View user's profile Send private message
ganesh
PostPosted: Sun Mar 16, 2014 9:33 am    Post subject: Reply with quote

Master

Joined: 18 Jul 2010
Posts: 294

What is BIP message number you get and also a user trace for this message flow will reveal more on the error.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » UsernameToken with WS-SECURITY
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.