From a513e4af90c1fe20737d511d8f7d5040084efb29 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Wed, 29 Oct 2014 21:22:26 +0100 Subject: [PATCH] Yet more BitId testing --- Site5/Security/BitId.aspx.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Site5/Security/BitId.aspx.cs b/Site5/Security/BitId.aspx.cs index 488026f8..cddba134 100644 --- a/Site5/Security/BitId.aspx.cs +++ b/Site5/Security/BitId.aspx.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using System.Web; +using System.Web.Services; using System.Web.UI; using System.Web.UI.WebControls; using Swarmops.Logic.Support; @@ -12,10 +13,14 @@ namespace Swarmops.Security { protected void Page_Load(object sender, EventArgs e) { - Persistence.Key["BitIdTest_Addr"] = Request.Params["addr"]; - Persistence.Key["BitIdTest_Sign"] = Request.Params["sign"]; - Persistence.Key["BitIdTest_BitIdUri"] = Request.Params["bitid_uri"]; - Persistence.Key["BitIdTest_CallbackUri"] = Request.Params["callback_uri"]; + } + + [WebMethod] + public static void Authenticate(string uri, string address, string signature) + { + Persistence.Key["BitIdTest_Uri"] = uri; + Persistence.Key["BitIdTest_Address"] = address; + Persistence.Key["BitIdText_Signature"] = signature; } } } \ No newline at end of file