• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 165
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here's a library, http://spnego.sourceforge.net/protected_soap_service.html, that does exactly what you are describing.
 
It's a pleasure to see superheros taking such an interest in science. And this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic