diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-12-15 22:17:20 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-12-15 22:17:20 -0800 |
commit | e12782c1a6727390b2107ff2e39d4ac6173d86fc (patch) | |
tree | 3be0ccda0a9425927263f5b6b9616ef8ba11ac08 /src/DotNetOpenId.Test/Discovery | |
parent | 078b1f350eb40ceee7423c25b1d833dd1f242da4 (diff) | |
parent | a545f7be2693596fa14540c359e43150a6a7cf88 (diff) | |
download | DotNetOpenAuth-origin/mono.zip DotNetOpenAuth-origin/mono.tar.gz DotNetOpenAuth-origin/mono.tar.bz2 |
Merge branch 'v2.5' into monoorigin/mono
Conflicts:
src/DotNetOpenId/Properties/AssemblyInfo.cs
src/DotNetOpenId/RelyingParty/AuthenticationResponse.cs
Diffstat (limited to 'src/DotNetOpenId.Test/Discovery')
21 files changed, 254 insertions, 0 deletions
diff --git a/src/DotNetOpenId.Test/Discovery/htmldiscovery/html1020.html b/src/DotNetOpenId.Test/Discovery/htmldiscovery/html1020.html new file mode 100644 index 0000000..7c6c15e --- /dev/null +++ b/src/DotNetOpenId.Test/Discovery/htmldiscovery/html1020.html @@ -0,0 +1,12 @@ +<!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.Test/Discovery/htmldiscovery/html10both.html b/src/DotNetOpenId.Test/Discovery/htmldiscovery/html10both.html new file mode 100644 index 0000000..e97803e --- /dev/null +++ b/src/DotNetOpenId.Test/Discovery/htmldiscovery/html10both.html @@ -0,0 +1,10 @@ +<!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.Test/Discovery/htmldiscovery/html10del.html b/src/DotNetOpenId.Test/Discovery/htmldiscovery/html10del.html new file mode 100644 index 0000000..ddf121a --- /dev/null +++ b/src/DotNetOpenId.Test/Discovery/htmldiscovery/html10del.html @@ -0,0 +1,9 @@ +<!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.Test/Discovery/htmldiscovery/html10prov.html b/src/DotNetOpenId.Test/Discovery/htmldiscovery/html10prov.html new file mode 100644 index 0000000..1b198f9 --- /dev/null +++ b/src/DotNetOpenId.Test/Discovery/htmldiscovery/html10prov.html @@ -0,0 +1,9 @@ +<!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.Test/Discovery/htmldiscovery/html2010.html b/src/DotNetOpenId.Test/Discovery/htmldiscovery/html2010.html new file mode 100644 index 0000000..9fa3738 --- /dev/null +++ b/src/DotNetOpenId.Test/Discovery/htmldiscovery/html2010.html @@ -0,0 +1,12 @@ +<!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.Test/Discovery/htmldiscovery/html2010combinedA.html b/src/DotNetOpenId.Test/Discovery/htmldiscovery/html2010combinedA.html new file mode 100644 index 0000000..c057b67 --- /dev/null +++ b/src/DotNetOpenId.Test/Discovery/htmldiscovery/html2010combinedA.html @@ -0,0 +1,10 @@ +<!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.Test/Discovery/htmldiscovery/html2010combinedB.html b/src/DotNetOpenId.Test/Discovery/htmldiscovery/html2010combinedB.html new file mode 100644 index 0000000..3a86d4c --- /dev/null +++ b/src/DotNetOpenId.Test/Discovery/htmldiscovery/html2010combinedB.html @@ -0,0 +1,10 @@ +<!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.Test/Discovery/htmldiscovery/html2010combinedC.html b/src/DotNetOpenId.Test/Discovery/htmldiscovery/html2010combinedC.html new file mode 100644 index 0000000..13a3185 --- /dev/null +++ b/src/DotNetOpenId.Test/Discovery/htmldiscovery/html2010combinedC.html @@ -0,0 +1,10 @@ +<!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.Test/Discovery/htmldiscovery/html20both.html b/src/DotNetOpenId.Test/Discovery/htmldiscovery/html20both.html new file mode 100644 index 0000000..f41e66a --- /dev/null +++ b/src/DotNetOpenId.Test/Discovery/htmldiscovery/html20both.html @@ -0,0 +1,10 @@ +<!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.Test/Discovery/htmldiscovery/html20del.html b/src/DotNetOpenId.Test/Discovery/htmldiscovery/html20del.html new file mode 100644 index 0000000..20852c0 --- /dev/null +++ b/src/DotNetOpenId.Test/Discovery/htmldiscovery/html20del.html @@ -0,0 +1,9 @@ +<!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.Test/Discovery/htmldiscovery/html20prov.html b/src/DotNetOpenId.Test/Discovery/htmldiscovery/html20prov.html new file mode 100644 index 0000000..f0e673e --- /dev/null +++ b/src/DotNetOpenId.Test/Discovery/htmldiscovery/html20prov.html @@ -0,0 +1,9 @@ +<!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.Test/Discovery/htmldiscovery/html20relative.html b/src/DotNetOpenId.Test/Discovery/htmldiscovery/html20relative.html new file mode 100644 index 0000000..b13520c --- /dev/null +++ b/src/DotNetOpenId.Test/Discovery/htmldiscovery/html20relative.html @@ -0,0 +1,9 @@ +<!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.Test/Discovery/xrdsdiscovery/XrdsReferencedInHead.html b/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/XrdsReferencedInHead.html new file mode 100644 index 0000000..615038c --- /dev/null +++ b/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/XrdsReferencedInHead.html @@ -0,0 +1,12 @@ +<!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>
+ <meta http-equiv="X-XRDS-Location" content="http://localhost/xrds1020.xml"/>
+</head>
+<body>
+ <form id="form1" runat="server">
+ </form>
+</body>
+</html>
diff --git a/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/XrdsReferencedInHttpHeader.html b/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/XrdsReferencedInHttpHeader.html new file mode 100644 index 0000000..f0842db --- /dev/null +++ b/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/XrdsReferencedInHttpHeader.html @@ -0,0 +1,9 @@ +<html xmlns="http://www.w3.org/1999/xhtml">
+<head runat="server">
+ <title>Untitled Page</title>
+</head>
+<body>
+ <form id="form1" runat="server">
+ </form>
+</body>
+</html>
diff --git a/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/xrds-irrelevant.xml b/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/xrds-irrelevant.xml new file mode 100644 index 0000000..5116c0b --- /dev/null +++ b/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/xrds-irrelevant.xml @@ -0,0 +1,12 @@ +<?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>junk</Type> + <URI>http://a/b</URI> + </Service> + </XRD> +</xrds:XRDS> diff --git a/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/xrds10.xml b/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/xrds10.xml new file mode 100644 index 0000000..7280e9f --- /dev/null +++ b/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/xrds10.xml @@ -0,0 +1,22 @@ +<?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>
+ <!-- this next sreg one is deliberately an unofficial (but supported) sreg/1.0 typeUri, so we test it. -->
+ <Type>http://openid.net/sreg/1.0</Type>
+ <URI>http://a/b</URI>
+ <openid:Delegate></openid:Delegate> <!-- this is empty, but present, deliberately -->
+ </Service>
+ <!-- This next one is invalid since it doesn't have a URI value,
+ but it's here to verify it doesn't break the above valid services. -->
+ <Service priority="20">
+ <Type>http://openid.net/signon/1.0</Type>
+ <URI></URI>
+ <openid:Delegate></openid:Delegate>
+ </Service>
+ </XRD>
+</xrds:XRDS>
diff --git a/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/xrds1020.xml b/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/xrds1020.xml new file mode 100644 index 0000000..1b56f0f --- /dev/null +++ b/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/xrds1020.xml @@ -0,0 +1,18 @@ +<?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/extensions/sreg/1.1</Type> + <URI>http://a/b</URI> + </Service> + <Service priority="20"> + <Type>http://specs.openid.net/auth/2.0/signon</Type> + <Type>http://openid.net/extensions/sreg/1.1</Type> + <URI>http://c/d</URI> + </Service> + </XRD> +</xrds:XRDS> diff --git a/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/xrds11.xml b/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/xrds11.xml new file mode 100644 index 0000000..2d6a7aa --- /dev/null +++ b/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/xrds11.xml @@ -0,0 +1,13 @@ +<?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/extensions/sreg/1.1</Type> + <URI>http://a/b</URI> + </Service> + </XRD> +</xrds:XRDS> diff --git a/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/xrds20.xml b/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/xrds20.xml new file mode 100644 index 0000000..870b540 --- /dev/null +++ b/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/xrds20.xml @@ -0,0 +1,13 @@ +<?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/extensions/sreg/1.1</Type> + <URI>http://a/b</URI> + </Service> + </XRD> +</xrds:XRDS> diff --git a/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/xrds2010a.xml b/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/xrds2010a.xml new file mode 100644 index 0000000..4f72ac2 --- /dev/null +++ b/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/xrds2010a.xml @@ -0,0 +1,18 @@ +<?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/extensions/sreg/1.1</Type> + <URI>http://a/b</URI> + </Service> + <Service priority="20"> + <Type>http://openid.net/signon/1.0</Type> + <Type>http://openid.net/extensions/sreg/1.1</Type> + <URI>http://c/d</URI> + </Service> + </XRD> +</xrds:XRDS> diff --git a/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/xrds2010b.xml b/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/xrds2010b.xml new file mode 100644 index 0000000..8ad468f --- /dev/null +++ b/src/DotNetOpenId.Test/Discovery/xrdsdiscovery/xrds2010b.xml @@ -0,0 +1,18 @@ +<?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/extensions/sreg/1.1</Type> + <URI>http://c/d</URI> + </Service> + <Service priority="10"> + <Type>http://specs.openid.net/auth/2.0/signon</Type> + <Type>http://openid.net/extensions/sreg/1.1</Type> + <URI>http://a/b</URI> + </Service> + </XRD> +</xrds:XRDS> |