Questions tagged [usernametoken]

67 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
  • 11,712
  • 7
  • 42
  • 69
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
  • 326
  • 1
  • 2
  • 9
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:
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
  • 7,631
  • 9
  • 49
  • 76
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,148
  • 20
  • 64
  • 87
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…
4
votes
1 answer

What are the allowed character in snapchat username

I have been unable to find what the allowed characters are while creating a shapchat (https://www.snapchat.com/) username. Can anyone here share their knowledge regarding this? Context: I am creating a username validation system. N.B. I have tried…
SAZ
  • 67
  • 1
  • 1
  • 4
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
  • 35,710
  • 9
  • 67
  • 81
3
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
  • 18,757
  • 25
  • 99
  • 162
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
  • 1
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
  • 483
  • 7
  • 21
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
  • 18,757
  • 25
  • 99
  • 162
2
votes
0 answers

WCF Connected Service for .NET Core with UsernameToken & PasswordDigest

WCF .Net Framework does not support UsernameToken with PasswordDigest but microsoft provides a sample project to achieve this : https://blogs.msdn.microsoft.com/aszego/2010/06/24/usernametoken-profile-vs-wcf/ Does WCF Connected Service for .NET…
Akli
  • 1,125
  • 1
  • 13
  • 26
1
2 3 4 5