Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web service client needs to pass a Windows security token for authentication

 
Ravi Danum
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm writing a client which accesses an IIS web service. The client is on a Windows machine. I have to authenticate with the web service using integrated authentication. I am told that when a user logs onto a Windows machine, a security token is created. In addition, this token should be passed to the IIS web service to authenticate the client. This authentication does not need the client's userId and password.

Does anyone know how the java client code can be written to obtain this token and use it to authenticate with the web service?

If this can't be done in java, is there a library I can use through jni?

(I have used the HttpClient from Apache and got that working using the digest authentication mechanism. For this I needed userid and password. My new requirement is to not use the userid/password)

Thanks in advance for any information.

-Ravi

 
Pat Gonzalez
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a library, http://spnego.sourceforge.net/protected_soap_service.html, that does exactly what you are describing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic