diff options
Diffstat (limited to 'src/DotNetOpenId.TestWeb')
29 files changed, 105 insertions, 345 deletions
diff --git a/src/DotNetOpenId.TestWeb/Default.aspx b/src/DotNetOpenId.TestWeb/Default.aspx index e8f6a1a..706baff 100644 --- a/src/DotNetOpenId.TestWeb/Default.aspx +++ b/src/DotNetOpenId.TestWeb/Default.aspx @@ -10,7 +10,7 @@ <html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
- <openid:XrdsPublisher runat="server" ID="xrdsPublisher" XrdsUrl="~/rp_xrds.aspx" />
+ <openid:XrdsPublisher runat="server" ID="xrdsPublisher" XrdsUrl="~/rp_xrds.aspx" XrdsAdvertisement=Both />
</head>
<body>
<form id="form1" runat="server">
diff --git a/src/DotNetOpenId.TestWeb/DirectedIdentityEndpoint.aspx b/src/DotNetOpenId.TestWeb/DirectedIdentityEndpoint.aspx new file mode 100644 index 0000000..ae55a71 --- /dev/null +++ b/src/DotNetOpenId.TestWeb/DirectedIdentityEndpoint.aspx @@ -0,0 +1,27 @@ +<%@ Page Language="C#" %>
+
+<%@ Register Assembly="DotNetOpenId" Namespace="DotNetOpenId.Provider" TagPrefix="openid" %>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<script runat="server">
+ protected override void OnLoad(EventArgs e) {
+ base.OnLoad(e);
+
+ IdentityEndpoint1.ProviderEndpointUrl += "?user=" + Request.QueryString["user"];
+ IdentityEndpoint1.ProviderVersion = (DotNetOpenId.ProtocolVersion)
+ Enum.Parse(typeof(DotNetOpenId.ProtocolVersion), Request.QueryString["version"]);
+ }
+</script>
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head runat="server">
+ <title>Identity page</title>
+ <openid:IdentityEndpoint ID="IdentityEndpoint1" runat="server" EnableViewState="false"
+ ProviderEndpointUrl="~/DirectedProviderEndpoint.aspx" />
+</head>
+<body>
+ <form id="form1" runat="server">
+ </form>
+</body>
+</html>
diff --git a/src/DotNetOpenId.TestWeb/DirectedProviderEndpoint.aspx b/src/DotNetOpenId.TestWeb/DirectedProviderEndpoint.aspx new file mode 100644 index 0000000..753f031 --- /dev/null +++ b/src/DotNetOpenId.TestWeb/DirectedProviderEndpoint.aspx @@ -0,0 +1,16 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DirectedProviderEndpoint.aspx.cs" Inherits="DirectedProviderEndpoint" %>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head runat="server">
+ <title>Untitled Page</title>
+</head>
+<body>
+ <form id="form1" runat="server">
+ <div>
+
+ </div>
+ </form>
+</body>
+</html>
diff --git a/src/DotNetOpenId.TestWeb/DirectedProviderEndpoint.aspx.cs b/src/DotNetOpenId.TestWeb/DirectedProviderEndpoint.aspx.cs new file mode 100644 index 0000000..2dae40e --- /dev/null +++ b/src/DotNetOpenId.TestWeb/DirectedProviderEndpoint.aspx.cs @@ -0,0 +1,45 @@ +using System;
+using System.Web.UI;
+using DotNetOpenId;
+using DotNetOpenId.Provider;
+
+public partial class DirectedProviderEndpoint : System.Web.UI.Page {
+ protected void Page_Load(object sender, EventArgs e) {
+ TestSupport.Scenarios scenario = (TestSupport.Scenarios)Enum.Parse(typeof(TestSupport.Scenarios), Request.QueryString["user"]);
+ UriBuilder providerEndpoint = new UriBuilder(Request.Url);
+ providerEndpoint.Query = "user=" + scenario;
+ OpenIdProvider provider = new OpenIdProvider(TestSupport.ProviderStoreContext, providerEndpoint.Uri,
+ Request.Url, Request.HttpMethod == "GET" ? Request.QueryString : Request.Form);
+ if (provider.Request != null) {
+ if (!provider.Request.IsResponseReady) {
+ var idreq = provider.Request as IAuthenticationRequest;
+ idreq.ClaimedIdentifier = new Uri(Request.Url, Page.ResolveUrl("~/DirectedIdentityEndpoint.aspx?user=" + scenario + "&version=" + ProtocolVersion.V20));
+
+ switch (scenario) {
+ case TestSupport.Scenarios.AutoApproval:
+ // immediately approve
+ idreq.IsAuthenticated = true;
+ break;
+ case TestSupport.Scenarios.AutoApprovalAddFragment:
+ idreq.SetClaimedIdentifierFragment("frag");
+ idreq.IsAuthenticated = true;
+ break;
+ case TestSupport.Scenarios.ApproveOnSetup:
+ idreq.IsAuthenticated = !idreq.Immediate;
+ break;
+ case TestSupport.Scenarios.AlwaysDeny:
+ idreq.IsAuthenticated = false;
+ break;
+ case TestSupport.Scenarios.ExtensionFullCooperation:
+ case TestSupport.Scenarios.ExtensionPartialCooperation:
+ throw new NotImplementedException();
+ //idreq.IsAuthenticated = true;
+ //break;
+ default:
+ throw new InvalidOperationException("Unrecognized scenario");
+ }
+ }
+ provider.Request.Response.Send();
+ }
+ }
+}
diff --git a/src/DotNetOpenId.TestWeb/Global.asax b/src/DotNetOpenId.TestWeb/Global.asax index 34f8aab..74cbe57 100644 --- a/src/DotNetOpenId.TestWeb/Global.asax +++ b/src/DotNetOpenId.TestWeb/Global.asax @@ -1,11 +1,12 @@ <%@ Application Language="C#" %>
<script RunAt="server">
+ public static log4net.ILog Logger = log4net.LogManager.GetLogger(typeof(global_asax));
void Application_Error(object sender, EventArgs e) {
// Code that runs when an unhandled error occurs
Exception ex = HttpContext.Current.Error;
- System.Diagnostics.Trace.WriteLine(ex.ToString());
+ Logger.Error(ex.ToString());
}
</script>
diff --git a/src/DotNetOpenId.TestWeb/IdentityEndpoint.aspx b/src/DotNetOpenId.TestWeb/IdentityEndpoint.aspx index a70742f..f25355a 100644 --- a/src/DotNetOpenId.TestWeb/IdentityEndpoint.aspx +++ b/src/DotNetOpenId.TestWeb/IdentityEndpoint.aspx @@ -17,7 +17,7 @@ <html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Identity page</title>
- <openid:IdentityEndpoint ID="IdentityEndpoint1" runat="server"
+ <openid:IdentityEndpoint ID="IdentityEndpoint1" runat="server" EnableViewState="false"
ProviderEndpointUrl="~/ProviderEndpoint.aspx" />
</head>
<body>
diff --git a/src/DotNetOpenId.TestWeb/xrdsdiscovery/XrdsReferencedInHttpHeader.aspx b/src/DotNetOpenId.TestWeb/OPDefault.aspx index b31c707..5ce5804 100644 --- a/src/DotNetOpenId.TestWeb/xrdsdiscovery/XrdsReferencedInHttpHeader.aspx +++ b/src/DotNetOpenId.TestWeb/OPDefault.aspx @@ -1,20 +1,25 @@ <%@ Page Language="C#" %>
+<%@ Register Assembly="DotNetOpenId" Namespace="DotNetOpenId" TagPrefix="openid" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected override void OnLoad(EventArgs e) {
base.OnLoad(e);
- Response.AddHeader("X-XRDS-Location", Util.GetFullUrl("xrds1020.aspx").AbsoluteUri);
+
+ xrdsPublisher.XrdsUrl += "?user=" + Request.QueryString["user"];
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
+ <!-- this page is the directed identity OP Identifier -->
+ <openid:XrdsPublisher runat="server" ID="xrdsPublisher" XrdsUrl="~/op_xrds.aspx" EnableViewState="false" />
</head>
<body>
<form id="form1" runat="server">
+ Test home page, used for OP discovery.
</form>
</body>
</html>
diff --git a/src/DotNetOpenId.TestWeb/ProviderEndpoint.aspx.cs b/src/DotNetOpenId.TestWeb/ProviderEndpoint.aspx.cs index 93738f5..362d4a8 100644 --- a/src/DotNetOpenId.TestWeb/ProviderEndpoint.aspx.cs +++ b/src/DotNetOpenId.TestWeb/ProviderEndpoint.aspx.cs @@ -5,122 +5,25 @@ using DotNetOpenId.Extensions.SimpleRegistration; using SregDemandLevel = DotNetOpenId.Extensions.SimpleRegistration.DemandLevel;
using DotNetOpenId.Extensions.ProviderAuthenticationPolicy;
using System.Globalization;
+using DotNetOpenId;
public partial class ProviderEndpoint : System.Web.UI.Page {
- const string nicknameTypeUri = WellKnownAttributes.Name.Alias;
- const string emailTypeUri = WellKnownAttributes.Contact.Email;
-
- IDictionary<string, AttributeValues> storedAttributes {
- get {
- var atts = (Dictionary<string, AttributeValues>)Application["storedAttributes"];
- if (atts == null) {
- atts = new Dictionary<string, AttributeValues>();
- Application["storedAttributes"] = atts;
- }
- return atts;
- }
- }
-
- void respondToExtensions(DotNetOpenId.Provider.IRequest request, TestSupport.Scenarios scenario) {
- var sregRequest = request.GetExtension<ClaimsRequest>();
- var sregResponse = new ClaimsResponse();
- var aeFetchRequest = request.GetExtension<FetchRequest>();
- var aeFetchResponse = new FetchResponse();
- var aeStoreRequest = request.GetExtension<StoreRequest>();
- var aeStoreResponse = new StoreResponse();
- var papeRequest = request.GetExtension<PolicyRequest>();
- var papeResponse = new PolicyResponse();
- switch (scenario) {
- case TestSupport.Scenarios.ExtensionFullCooperation:
- if (sregRequest != null) {
- if (sregRequest.FullName != SregDemandLevel.NoRequest)
- sregResponse.FullName = "Andrew Arnott";
- if (sregRequest.Email != SregDemandLevel.NoRequest)
- sregResponse.Email = "andrewarnott@gmail.com";
- }
- if (aeFetchRequest != null) {
- var att = aeFetchRequest.GetAttribute(nicknameTypeUri);
- if (att != null)
- aeFetchResponse.AddAttribute(att.Respond("Andrew"));
- att = aeFetchRequest.GetAttribute(emailTypeUri);
- if (att != null) {
- string[] emails = new[] { "a@a.com", "b@b.com" };
- string[] subset = new string[Math.Min(emails.Length, att.Count)];
- Array.Copy(emails, subset, subset.Length);
- aeFetchResponse.AddAttribute(att.Respond(subset));
- }
- foreach (var att2 in aeFetchRequest.Attributes) {
- if (storedAttributes.ContainsKey(att2.TypeUri))
- aeFetchResponse.AddAttribute(storedAttributes[att2.TypeUri]);
- }
- }
- if (papeRequest != null) {
- if (papeRequest.MaximumAuthenticationAge.HasValue) {
- papeResponse.AuthenticationTimeUtc = DateTime.UtcNow - (papeRequest.MaximumAuthenticationAge.Value - TimeSpan.FromSeconds(30));
- }
- }
- break;
- case TestSupport.Scenarios.ExtensionPartialCooperation:
- if (sregRequest != null) {
- if (sregRequest.FullName == SregDemandLevel.Require)
- sregResponse.FullName = "Andrew Arnott";
- if (sregRequest.Email == SregDemandLevel.Require)
- sregResponse.Email = "andrewarnott@gmail.com";
- }
- if (aeFetchRequest != null) {
- var att = aeFetchRequest.GetAttribute(nicknameTypeUri);
- if (att != null && att.IsRequired)
- aeFetchResponse.AddAttribute(att.Respond("Andrew"));
- att = aeFetchRequest.GetAttribute(emailTypeUri);
- if (att != null && att.IsRequired) {
- string[] emails = new[] { "a@a.com", "b@b.com" };
- string[] subset = new string[Math.Min(emails.Length, att.Count)];
- Array.Copy(emails, subset, subset.Length);
- aeFetchResponse.AddAttribute(att.Respond(subset));
- }
- foreach (var att2 in aeFetchRequest.Attributes) {
- if (att2.IsRequired && storedAttributes.ContainsKey(att2.TypeUri))
- aeFetchResponse.AddAttribute(storedAttributes[att2.TypeUri]);
- }
- }
- break;
- }
- if (aeStoreRequest != null) {
- foreach (var att in aeStoreRequest.Attributes) {
- storedAttributes[att.TypeUri] = att;
- }
- aeStoreResponse.Succeeded = true;
- }
- if (sregRequest != null) request.AddResponseExtension(sregResponse);
- if (aeFetchRequest != null) request.AddResponseExtension(aeFetchResponse);
- if (aeStoreRequest != null) request.AddResponseExtension(aeStoreResponse);
- if (papeRequest != null) request.AddResponseExtension(papeResponse);
- }
-
protected void ProviderEndpoint1_AuthenticationChallenge(object sender, DotNetOpenId.Provider.AuthenticationChallengeEventArgs e) {
- TestSupport.Scenarios scenario = (TestSupport.Scenarios)Enum.Parse(typeof(TestSupport.Scenarios),
- new Uri(e.Request.LocalIdentifier.ToString()).AbsolutePath.TrimStart('/'));
if (!e.Request.IsReturnUrlDiscoverable) {
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
"return_to could not be verified using RP discovery realm {0}.", e.Request.Realm));
}
+ TestSupport.Scenarios scenario = (TestSupport.Scenarios)Enum.Parse(typeof(TestSupport.Scenarios),
+ new Uri(e.Request.LocalIdentifier).AbsolutePath.TrimStart('/'));
switch (scenario) {
case TestSupport.Scenarios.AutoApproval:
- // immediately approve
e.Request.IsAuthenticated = true;
break;
case TestSupport.Scenarios.ApproveOnSetup:
e.Request.IsAuthenticated = !e.Request.Immediate;
break;
- case TestSupport.Scenarios.AlwaysDeny:
- e.Request.IsAuthenticated = false;
- break;
- case TestSupport.Scenarios.ExtensionFullCooperation:
- case TestSupport.Scenarios.ExtensionPartialCooperation:
- respondToExtensions(e.Request, scenario);
- e.Request.IsAuthenticated = true;
- break;
default:
+ // All other scenarios are done programmatically only.
throw new InvalidOperationException("Unrecognized scenario");
}
e.Request.Response.Send();
diff --git a/src/DotNetOpenId.TestWeb/htmldiscovery/html1020.aspx b/src/DotNetOpenId.TestWeb/htmldiscovery/html1020.aspx deleted file mode 100644 index 7c6c15e..0000000 --- a/src/DotNetOpenId.TestWeb/htmldiscovery/html1020.aspx +++ /dev/null @@ -1,12 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>Untitled Page</title>
- <link rel="openid.server" href="http://e/f" />
- <link rel="openid.delegate" href="http://g/h" />
- <link rel="openid2.provider" href="http://a/b" />
- <link rel="openid2.local_id" href="http://c/d" />
-</head>
-<body>
-</body>
-</html>
diff --git a/src/DotNetOpenId.TestWeb/htmldiscovery/html10both.aspx b/src/DotNetOpenId.TestWeb/htmldiscovery/html10both.aspx deleted file mode 100644 index e97803e..0000000 --- a/src/DotNetOpenId.TestWeb/htmldiscovery/html10both.aspx +++ /dev/null @@ -1,10 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>Untitled Page</title>
- <link rel="openid.server" href="http://a/b" />
- <link rel="openid.delegate" href="http://c/d" />
-</head>
-<body>
-</body>
-</html>
diff --git a/src/DotNetOpenId.TestWeb/htmldiscovery/html10del.aspx b/src/DotNetOpenId.TestWeb/htmldiscovery/html10del.aspx deleted file mode 100644 index ddf121a..0000000 --- a/src/DotNetOpenId.TestWeb/htmldiscovery/html10del.aspx +++ /dev/null @@ -1,9 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>Untitled Page</title>
- <link rel="openid.delegate" href="http://c/d" />
-</head>
-<body>
-</body>
-</html>
diff --git a/src/DotNetOpenId.TestWeb/htmldiscovery/html10prov.aspx b/src/DotNetOpenId.TestWeb/htmldiscovery/html10prov.aspx deleted file mode 100644 index 1b198f9..0000000 --- a/src/DotNetOpenId.TestWeb/htmldiscovery/html10prov.aspx +++ /dev/null @@ -1,9 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>Untitled Page</title>
- <link rel="openid.server" href="http://a/b" />
-</head>
-<body>
-</body>
-</html>
diff --git a/src/DotNetOpenId.TestWeb/htmldiscovery/html2010.aspx b/src/DotNetOpenId.TestWeb/htmldiscovery/html2010.aspx deleted file mode 100644 index 9fa3738..0000000 --- a/src/DotNetOpenId.TestWeb/htmldiscovery/html2010.aspx +++ /dev/null @@ -1,12 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>Untitled Page</title>
- <link rel="openid2.provider" href="http://a/b" />
- <link rel="openid2.local_id" href="http://c/d" />
- <link rel="openid.server" href="http://e/f" />
- <link rel="openid.delegate" href="http://g/h" />
-</head>
-<body>
-</body>
-</html>
diff --git a/src/DotNetOpenId.TestWeb/htmldiscovery/html2010combinedA.aspx b/src/DotNetOpenId.TestWeb/htmldiscovery/html2010combinedA.aspx deleted file mode 100644 index c057b67..0000000 --- a/src/DotNetOpenId.TestWeb/htmldiscovery/html2010combinedA.aspx +++ /dev/null @@ -1,10 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>Untitled Page</title>
- <link rel="openid2.provider B openid.server" href="http://a/b" />
- <link rel="openid2.local_id B openid.delegate" href="http://c/d" />
-</head>
-<body>
-</body>
-</html>
diff --git a/src/DotNetOpenId.TestWeb/htmldiscovery/html2010combinedB.aspx b/src/DotNetOpenId.TestWeb/htmldiscovery/html2010combinedB.aspx deleted file mode 100644 index 3a86d4c..0000000 --- a/src/DotNetOpenId.TestWeb/htmldiscovery/html2010combinedB.aspx +++ /dev/null @@ -1,10 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>Untitled Page</title>
- <link rel="A openid2.provider openid.server" href="http://a/b" />
- <link rel="A openid2.local_id openid.delegate" href="http://c/d" />
-</head>
-<body>
-</body>
-</html>
diff --git a/src/DotNetOpenId.TestWeb/htmldiscovery/html2010combinedC.aspx b/src/DotNetOpenId.TestWeb/htmldiscovery/html2010combinedC.aspx deleted file mode 100644 index 13a3185..0000000 --- a/src/DotNetOpenId.TestWeb/htmldiscovery/html2010combinedC.aspx +++ /dev/null @@ -1,10 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>Untitled Page</title>
- <link rel="openid.server B openid2.provider" href="http://a/b" />
- <link rel="openid.delegate B openid2.local_id" href="http://c/d" />
-</head>
-<body>
-</body>
-</html>
diff --git a/src/DotNetOpenId.TestWeb/htmldiscovery/html20both.aspx b/src/DotNetOpenId.TestWeb/htmldiscovery/html20both.aspx deleted file mode 100644 index f41e66a..0000000 --- a/src/DotNetOpenId.TestWeb/htmldiscovery/html20both.aspx +++ /dev/null @@ -1,10 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>Untitled Page</title>
- <link rel="openid2.provider" href="http://a/b" />
- <link rel="openid2.local_id" href="http://c/d" />
-</head>
-<body>
-</body>
-</html>
diff --git a/src/DotNetOpenId.TestWeb/htmldiscovery/html20del.aspx b/src/DotNetOpenId.TestWeb/htmldiscovery/html20del.aspx deleted file mode 100644 index 20852c0..0000000 --- a/src/DotNetOpenId.TestWeb/htmldiscovery/html20del.aspx +++ /dev/null @@ -1,9 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>Untitled Page</title>
- <link rel="openid2.local_id" href="http://c/d" />
-</head>
-<body>
-</body>
-</html>
diff --git a/src/DotNetOpenId.TestWeb/htmldiscovery/html20prov.aspx b/src/DotNetOpenId.TestWeb/htmldiscovery/html20prov.aspx deleted file mode 100644 index f0e673e..0000000 --- a/src/DotNetOpenId.TestWeb/htmldiscovery/html20prov.aspx +++ /dev/null @@ -1,9 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>Untitled Page</title>
- <link rel="openid2.provider" href="http://a/b" />
-</head>
-<body>
-</body>
-</html>
diff --git a/src/DotNetOpenId.TestWeb/htmldiscovery/html20relative.aspx b/src/DotNetOpenId.TestWeb/htmldiscovery/html20relative.aspx deleted file mode 100644 index b13520c..0000000 --- a/src/DotNetOpenId.TestWeb/htmldiscovery/html20relative.aspx +++ /dev/null @@ -1,9 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>Untitled Page</title>
- <link rel="openid2.provider" href="../a/b" />
-</head>
-<body>
-</body>
-</html>
diff --git a/src/DotNetOpenId.TestWeb/htmldiscovery/redirect.aspx b/src/DotNetOpenId.TestWeb/htmldiscovery/redirect.aspx deleted file mode 100644 index 8b0373d..0000000 --- a/src/DotNetOpenId.TestWeb/htmldiscovery/redirect.aspx +++ /dev/null @@ -1,9 +0,0 @@ -<%@ Page Language="C#" %>
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<script runat="server">
- protected override void OnLoad(EventArgs e) {
- Response.Redirect(Request.QueryString["target"]);
- }
-</script>
diff --git a/src/DotNetOpenId.TestWeb/xrdsdiscovery/xrds-irrelevant.aspx b/src/DotNetOpenId.TestWeb/op_xrds.aspx index 3cdebab..bef77d6 100644 --- a/src/DotNetOpenId.TestWeb/xrdsdiscovery/xrds-irrelevant.aspx +++ b/src/DotNetOpenId.TestWeb/op_xrds.aspx @@ -5,8 +5,9 @@ xmlns="xri://$xrd*($v*2.0)"> <XRD> <Service priority="10"> - <Type>junk</Type> - <URI>http://a/b</URI> + <Type>http://specs.openid.net/auth/2.0/server</Type> + <Type>http://openid.net/extensions/sreg/1.1</Type> + <URI><%=new Uri(Request.Url, Response.ApplyAppPathModifier("~/DirectedProviderEndpoint.aspx?user=" + Request.QueryString["user"]))%></URI> </Service> </XRD> </xrds:XRDS> diff --git a/src/DotNetOpenId.TestWeb/xrdsdiscovery/XrdsReferencedInHead.aspx b/src/DotNetOpenId.TestWeb/xrdsdiscovery/XrdsReferencedInHead.aspx deleted file mode 100644 index fabb2aa..0000000 --- a/src/DotNetOpenId.TestWeb/xrdsdiscovery/XrdsReferencedInHead.aspx +++ /dev/null @@ -1,17 +0,0 @@ -<%@ Page Language="C#" %>
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<script runat="server">
-</script>
-
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head runat="server">
- <title>Untitled Page</title>
- <meta http-equiv="X-XRDS-Location" content="<%=Util.GetFullUrl("xrds1020.aspx")%>"/>
-</head>
-<body>
- <form id="form1" runat="server">
- </form>
-</body>
-</html>
diff --git a/src/DotNetOpenId.TestWeb/xrdsdiscovery/xrds10.aspx b/src/DotNetOpenId.TestWeb/xrdsdiscovery/xrds10.aspx deleted file mode 100644 index 1b1af80..0000000 --- a/src/DotNetOpenId.TestWeb/xrdsdiscovery/xrds10.aspx +++ /dev/null @@ -1,13 +0,0 @@ -<%@ Page Language="C#" AutoEventWireup="true" ContentType="application/xrds+xml" %><?xml version="1.0" encoding="UTF-8"?> -<xrds:XRDS - xmlns:xrds="xri://$xrds" - xmlns:openid="http://openid.net/xmlns/1.0" - xmlns="xri://$xrd*($v*2.0)"> - <XRD> - <Service priority="10"> - <Type>http://openid.net/signon/1.0</Type> - <Type>http://openid.net/sreg/1.0</Type> - <URI>http://a/b</URI> - </Service> - </XRD> -</xrds:XRDS> diff --git a/src/DotNetOpenId.TestWeb/xrdsdiscovery/xrds1020.aspx b/src/DotNetOpenId.TestWeb/xrdsdiscovery/xrds1020.aspx deleted file mode 100644 index 067aa8a..0000000 --- a/src/DotNetOpenId.TestWeb/xrdsdiscovery/xrds1020.aspx +++ /dev/null @@ -1,18 +0,0 @@ -<%@ Page Language="C#" AutoEventWireup="true" ContentType="application/xrds+xml" %><?xml version="1.0" encoding="UTF-8"?> -<xrds:XRDS - xmlns:xrds="xri://$xrds" - xmlns:openid="http://openid.net/xmlns/1.0" - xmlns="xri://$xrd*($v*2.0)"> - <XRD> - <Service priority="10"> - <Type>http://openid.net/signon/1.0</Type> - <Type>http://openid.net/sreg/1.0</Type> - <URI>http://a/b</URI> - </Service> - <Service priority="20"> - <Type>http://specs.openid.net/auth/2.0/signon</Type> - <Type>http://openid.net/sreg/1.0</Type> - <URI>http://c/d</URI> - </Service> - </XRD> -</xrds:XRDS> diff --git a/src/DotNetOpenId.TestWeb/xrdsdiscovery/xrds11.aspx b/src/DotNetOpenId.TestWeb/xrdsdiscovery/xrds11.aspx deleted file mode 100644 index fd522b4..0000000 --- a/src/DotNetOpenId.TestWeb/xrdsdiscovery/xrds11.aspx +++ /dev/null @@ -1,13 +0,0 @@ -<%@ Page Language="C#" AutoEventWireup="true" ContentType="application/xrds+xml" %><?xml version="1.0" encoding="UTF-8"?> -<xrds:XRDS - xmlns:xrds="xri://$xrds" - xmlns:openid="http://openid.net/xmlns/1.0" - xmlns="xri://$xrd*($v*2.0)"> - <XRD> - <Service priority="10"> - <Type>http://openid.net/signon/1.1</Type> - <Type>http://openid.net/sreg/1.0</Type> - <URI>http://a/b</URI> - </Service> - </XRD> -</xrds:XRDS> diff --git a/src/DotNetOpenId.TestWeb/xrdsdiscovery/xrds20.aspx b/src/DotNetOpenId.TestWeb/xrdsdiscovery/xrds20.aspx deleted file mode 100644 index b31a47a..0000000 --- a/src/DotNetOpenId.TestWeb/xrdsdiscovery/xrds20.aspx +++ /dev/null @@ -1,13 +0,0 @@ -<%@ Page Language="C#" AutoEventWireup="true" ContentType="application/xrds+xml" %><?xml version="1.0" encoding="UTF-8"?> -<xrds:XRDS - xmlns:xrds="xri://$xrds" - xmlns:openid="http://openid.net/xmlns/1.0" - xmlns="xri://$xrd*($v*2.0)"> - <XRD> - <Service priority="10"> - <Type>http://specs.openid.net/auth/2.0/signon</Type> - <Type>http://openid.net/sreg/1.0</Type> - <URI>http://a/b</URI> - </Service> - </XRD> -</xrds:XRDS> diff --git a/src/DotNetOpenId.TestWeb/xrdsdiscovery/xrds2010a.aspx b/src/DotNetOpenId.TestWeb/xrdsdiscovery/xrds2010a.aspx deleted file mode 100644 index efac545..0000000 --- a/src/DotNetOpenId.TestWeb/xrdsdiscovery/xrds2010a.aspx +++ /dev/null @@ -1,18 +0,0 @@ -<%@ Page Language="C#" AutoEventWireup="true" ContentType="application/xrds+xml" %><?xml version="1.0" encoding="UTF-8"?> -<xrds:XRDS - xmlns:xrds="xri://$xrds" - xmlns:openid="http://openid.net/xmlns/1.0" - xmlns="xri://$xrd*($v*2.0)"> - <XRD> - <Service priority="10"> - <Type>http://specs.openid.net/auth/2.0/signon</Type> - <Type>http://openid.net/sreg/1.0</Type> - <URI>http://a/b</URI> - </Service> - <Service priority="20"> - <Type>http://openid.net/signon/1.0</Type> - <Type>http://openid.net/sreg/1.0</Type> - <URI>http://c/d</URI> - </Service> - </XRD> -</xrds:XRDS> diff --git a/src/DotNetOpenId.TestWeb/xrdsdiscovery/xrds2010b.aspx b/src/DotNetOpenId.TestWeb/xrdsdiscovery/xrds2010b.aspx deleted file mode 100644 index c853092..0000000 --- a/src/DotNetOpenId.TestWeb/xrdsdiscovery/xrds2010b.aspx +++ /dev/null @@ -1,18 +0,0 @@ -<%@ Page Language="C#" AutoEventWireup="true" ContentType="application/xrds+xml" %><?xml version="1.0" encoding="UTF-8"?> -<xrds:XRDS - xmlns:xrds="xri://$xrds" - xmlns:openid="http://openid.net/xmlns/1.0" - xmlns="xri://$xrd*($v*2.0)"> - <XRD> - <Service priority="20"> - <Type>http://openid.net/signon/1.0</Type> - <Type>http://openid.net/sreg/1.0</Type> - <URI>http://c/d</URI> - </Service> - <Service priority="10"> - <Type>http://specs.openid.net/auth/2.0/signon</Type> - <Type>http://openid.net/sreg/1.0</Type> - <URI>http://a/b</URI> - </Service> - </XRD> -</xrds:XRDS> |