private void ProcessOpenId(HttpContext context) { if (context.Request["action"] == "getlist") { OpenIdPlugins openIdPlugins = OpenIdPlugins.Instance(); context.Response.ContentType = "application/json"; context.Response.Write(openIdPlugins.GetPlugins().ToJsonString()); return; } if (context.Request["action"] == "getmetadata") { context.Response.ContentType = "text/xml"; OpenIdService openIdService = OpenIdService.CreateInstance(context.Request["name"]); if (openIdService == null) { context.Response.Write("<xml></xml>"); return; } context.Response.Write(openIdService.GetMetaData().OuterXml); } }