Questions tagged [usernametoken]
82 questions
22
votes
4 answers
Example of SOAP request authenticated with WS-UsernameToken
I'm trying to authenticate a SOAP request using WS-UsernameToken spec, but the target device is always denying access. My non-working request looks like this. (The password I'm trying to hash is system.)

che
- 12,097
- 7
- 42
- 71
13
votes
2 answers
WCF SOAP 1.1 and WS-Security 1.0, client certificate transport auth, service cert for message body signature, UsernameToken, Password Digest, Nonce
Summary:
I am working on a .NET 4.0 WCF client to consume a web service (DataPower, Java service on the other end) using SOAP 1.1 and WS-Security 1.0. The WCF client must implement a client certificate for mutual authentication at the transport…

Jawad
- 356
- 1
- 2
- 10
7
votes
2 answers
WS-security (usernametoken) for CXF - encrypted passwords possible?
I'm trying to get together with CXF's WS-security implementation(usernametoken). I've done everything as said at http://cxf.apache.org/docs/ws-security.html. My PasswordCallbackHandler seems to be working, but what bothers me is a part:
if…

Jan
- 138
- 1
- 8
6
votes
2 answers
How do I add an EncodingType attribute to the Nonce element of a UsernameToken in WSE 3.0 (.NET)
I'm trying to call a Java Web Service from an MVC3 .NET web app using WSE 3.0.
However, the web service requires an "EncodingType" attribute on the Nonce element of the UsernameToken. Following is a sample SOAP envelope that works correctly with…

dwoood
- 81
- 1
- 4
6
votes
0 answers
WSDoAllSender class replacement in wss4j-1.6.10?
I have a WSDD what works well with wssj4-1.5.12. It looks like this:

user1477923
- 61
- 3
5
votes
1 answer
Java Webservice Client UsernameToken equivalent to PHP
I have a webservice build in PHP that uses UsernameToken as authentification mechanism. I have PHP client side code that can access this web service. Now I need to do this in Java. Maybe you can help me!
This service can be accessed using the…

cb0
- 8,415
- 9
- 52
- 80
5
votes
0 answers
Configuring GlassFish for WS-Security using UsernameToken
I am hosting a JAX-WS web service in GlassFish 3.0.1 (Metro stack). I would like to enable WS-Security on this web-service using UsernameTokens. How do I do this? I have not found very good documentation on this subject - much of it is on standalone…

Naresh
- 23,937
- 33
- 132
- 204
5
votes
1 answer
How to add wsse:Security, UsernameToken header to a SOAP request in ZSI, Python?
Is there a way to add the wsse:Security, UsernameToken header to the SOAP requests in ZSI, Python? I searched on the web, but couldn't find an answer.

Srikanth
- 11,780
- 23
- 72
- 92
5
votes
1 answer
Adding soap header authentication to wsdl2java generated code
I'm in the process of creating a Java web services client from a wsdl. I used Eclipses's Dynamic Web Project and new Web Services Client to generate the code with wsdl2java with Apache Axis 1.4. I need to add SOAP authentication to this code in…

Dirigible Pulp
- 91
- 1
- 8
4
votes
1 answer
How to use WS-Security and Access UsernameToken from an ASMX Web Service?
Okay, so we have a legacy ASMX web service that is currently running in .NET 3.5 and we're using Visual Studio 2008.
The problem is, we need to add authentication and would like to take advantage of the WS-Security model without breaking any…

James Michael Hare
- 37,767
- 9
- 73
- 83
3
votes
1 answer
WCF error calling WS-Security web service: Cannot find a token authenticator for the X509SecurityToken
I'm trying to connect with an external Java Web service with WS-Security enabled over https with a WCF client.
The service use UserNameToken authentication.
When the client call the service, I get this exception:
Cannot find a token authenticator…

dmagrom
- 31
- 2
2
votes
2 answers
@username Regular Expression for social media with JavaScript
I am relatively new to using Regular Expressions with JavaScript and come across a particular situation with regards to the '@' username pattern that has given me about 3 hours of trouble.
I would like to replicate the @username pattern found on…

ninnjak
- 99
- 1
- 5
2
votes
2 answers
Unable to login to GitHub account even with correct credentials
enter image description here
I am unable to login to my GitHub account even with the correct username and password. They keeps telling me that username or password is not correct while it is the correct credentials. Please I need help on how to…

Ukeme Elijah
- 157
- 3
- 13
2
votes
0 answers
Adding usernameToken authentication to ONVIF deviceClient
CONTEXT:
I'm currently trying to code a C# application to get informations, such as camera feed, dateTime, streaming URL, profiles and much more, from an ip camera, using the ONVIF "standard"...
I managed to get the system time of the camera using…

LoukMouk
- 503
- 9
- 29
2
votes
1 answer
Visual Studio cannot consume Web Service containing UsernameToken policy
I am getting errors when trying to add a reference to a Web Service in Visual Studio 2010. The Web Service is implemented in Java using the JAX-WS/Metro/GlassFish stack and contains a UsernameToken policy. Here's an excerpt from the…

Naresh
- 23,937
- 33
- 132
- 204