Debugging sockets

This commit is contained in:
Rick Falkvinge
2017-01-12 20:58:28 +01:00
parent 8c2e7cfe41
commit d09da97810
+4
View File
@@ -47,11 +47,15 @@ namespace Swarmops.Frontend.Socket
protected override void OnOpen()
{
Console.WriteLine(" * Attempted socket connection");
string authBase64 = Context.QueryString["Auth"];
authBase64 = Uri.UnescapeDataString (authBase64); // Defensive programming - % sign does not exist in base64 so this won't ever collapse a working encoding
_authority = Authority.FromEncryptedXml (authBase64);
Console.WriteLine(" - - authenticated: " + _authority.Person.Canonical);
base.OnOpen();
if (Context.QueryString["Notify"] != "false")