|
Hello, I have faced a problem when trying to authenticate a TCP connection via HTTPListener. The authentication scheme of HTTPListener is set to Digest. While working the listener is blocked on the GetContext() function and responds with '401 Unauthorized' with 'WWW-Authenticate' header supplied. The client (which is the external device) is processing the response, generating digest information ('Authorization' header) and sends the request again. The point is that the client is never properly authenticated.
My question is how the HTTPListener class is authenticating the incoming requests? The client is sending the username token in the 'Authorization' HTTP header, so how does the server knows the password? How to create and link credentials of particular users with the HTTPListener?
Thanks, Tomasz.
|