NetTalk Central

Author Topic: Can NetTalk Client do HTTP Digest Authentication?  (Read 6971 times)

bekeland

  • Newbie
  • *
  • Posts: 37
    • View Profile
Can NetTalk Client do HTTP Digest Authentication?
« on: May 28, 2009, 07:18:01 AM »
I have a need to access a device that uses HTTP Digest Authentication.  It is a network camera.  My normal tool for this is Catalyst Socket Tools but they don't support this in any flavor of their stuff.  So looking for alternatives and thought maybe NetTalk might be able to do this.  Is that a possibility or anyone know of a TCP/HTTP tool that can do this?  Thanks much.

Brian Ekeland

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Can NetTalk Client do HTTP Digest Authentication?
« Reply #1 on: May 28, 2009, 07:47:18 AM »
Hi Brian,

I think some folks have done Digest Authentication using NetTalk - but I'm not sure of the status of it in NetTalk itself. I'll have to ask Sean in the morning - I'll keep you posted.

Cheers
Bruce

seancameron

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • CapeSoft Software
Re: Can NetTalk Client do HTTP Digest Authentication?
« Reply #2 on: June 01, 2009, 05:59:07 AM »
Hi Brian,

At the moment this is is not built in, although I have a digest auth class that will be added to NetTalk to provide digest based authentication for the NetWebClient (HTTP) class (and all other classes for that matter).

Regards,

Sean Cameron
www.capesoft.com
Sean Cameron
CapeSoft
www.capesoft.com

Work Smarter, Not Harder

bekeland

  • Newbie
  • *
  • Posts: 37
    • View Profile
Re: Can NetTalk Client do HTTP Digest Authentication?
« Reply #3 on: June 03, 2009, 06:42:44 AM »
Sean,

That would be great.  Do you have a feel for when this would be ready?

Brian

Alan Telford

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
Re: Can NetTalk Client do HTTP Digest Authentication?
« Reply #4 on: June 04, 2009, 02:13:05 PM »
ON a similar question, do you have any code for NTLM authentication?
Even if it's not integrated, I wouldn't mind giving it a try.

Thanks
Alan

bvileen

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Re: Can NetTalk Client do HTTP Digest Authentication?
« Reply #5 on: May 31, 2011, 02:21:24 AM »
Is there any documentation on HTTP Digest Authentication for NT5? I see that Bruce has mentioned that it is available in a couple other posts.

Thanks
Brian V.

seancameron

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • CapeSoft Software
Re: Can NetTalk Client do HTTP Digest Authentication?
« Reply #6 on: May 31, 2011, 04:24:19 AM »
The docs are currently missing the Digest Based auth, however the code is in the demo. NetTalk provides a method that creates the authorization for you:

      ThisWebClient.Authorization = ThisWebClient.CreateAuthorizationString (Username, Password, AuthenticationType)
      ThisWebClient.ProxyAuthorization = ThisWebClient.CreateAuthorizationString (ProxyUsername, ProxyPassword, ProxyAuthenticationType)

The AuthenticationType parameters is set to Net:WebBasicAuthentication (0) for Basic or Net:WebDigestAuthentication (1) for Digest based auth. See the TestWebClient procedure in the NetTalk Demo example.

In terms of NTLM it is not supported and is unlikely to ever be. It is an undocumented, proprietary protocol. It is only used by Microsoft and is intended for authentication between Microsoft Products. There are a few open source project attempting to built NTLM compatible libraries, although it is something of a moving target.
« Last Edit: August 09, 2012, 10:46:01 PM by Bruce »
Sean Cameron
CapeSoft
www.capesoft.com

Work Smarter, Not Harder

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Can NetTalk Client do HTTP Digest Authentication?
« Reply #7 on: May 31, 2011, 10:13:56 PM »
I recently changed the user-agent string in the web client, so the web client no longer identifies itself as IE. That should make NTLM authentication unnecessary -it will probably accept Digest.

Cheers
Bruce