If you create a standalone webpage around an HttpListener
, how can you handle authentication securely? I do not want to use basic authentication because it passes the credentials as plain text. I know digest is another option
listener = new HttpListener(); listener.Prefixes.Add(url); listener.AuthenticationSchemes = AuthenticationSchemes.Digest; listener.Start();
Is it safe enough and what are the standard / best practices for actually capturing username and password and authentication?
In this situation, by default there is no web.config or hosting environment.
source share