From d9bf22a0e29c2a70049443a0ae8521a2c0492c8b Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 11 Dec 2011 06:38:23 -0500 Subject: initial commit for git repository --- .../Tests/Auth/Yadis/data/README | 12 ++ .../Tests/Auth/Yadis/data/accept.txt | 118 ++++++++++++++++ .../Tests/Auth/Yadis/data/brian.multi.xrds | 38 ++++++ .../Tests/Auth/Yadis/data/brian.multi_uri.xrds | 16 +++ .../Tests/Auth/Yadis/data/brian.xrds | 16 +++ .../Tests/Auth/Yadis/data/brian_priority.xrds | 22 +++ .../Auth/Yadis/data/delegated-20060809-r1.xrds | 34 +++++ .../Auth/Yadis/data/delegated-20060809-r2.xrds | 34 +++++ .../Tests/Auth/Yadis/data/delegated-20060809.xrds | 34 +++++ .../Tests/Auth/Yadis/data/example-xrds.xml | 14 ++ .../Tests/Auth/Yadis/data/no-xrd.xml | 7 + .../Tests/Auth/Yadis/data/not-xrds.xml | 2 + .../Tests/Auth/Yadis/data/pip.xrds | 22 +++ .../Tests/Auth/Yadis/data/prefixsometimes.xrds | 34 +++++ .../Tests/Auth/Yadis/data/ref.xrds | 109 +++++++++++++++ .../Tests/Auth/Yadis/data/sometimesprefix.xrds | 34 +++++ .../Tests/Auth/Yadis/data/spoof1.xrds | 25 ++++ .../Tests/Auth/Yadis/data/spoof2.xrds | 25 ++++ .../Tests/Auth/Yadis/data/spoof3.xrds | 37 +++++ .../Tests/Auth/Yadis/data/subsegments.xrds | 58 ++++++++ .../Tests/Auth/Yadis/data/test1-discover.txt | 137 +++++++++++++++++++ .../Tests/Auth/Yadis/data/test1-parsehtml.txt | 149 +++++++++++++++++++++ .../Tests/Auth/Yadis/data/test1-xrd.xml | 39 ++++++ .../Tests/Auth/Yadis/data/uri_priority.xrds | 16 +++ 24 files changed, 1032 insertions(+) create mode 100644 models/openid-php-openid-782224d/Tests/Auth/Yadis/data/README create mode 100644 models/openid-php-openid-782224d/Tests/Auth/Yadis/data/accept.txt create mode 100644 models/openid-php-openid-782224d/Tests/Auth/Yadis/data/brian.multi.xrds create mode 100644 models/openid-php-openid-782224d/Tests/Auth/Yadis/data/brian.multi_uri.xrds create mode 100644 models/openid-php-openid-782224d/Tests/Auth/Yadis/data/brian.xrds create mode 100644 models/openid-php-openid-782224d/Tests/Auth/Yadis/data/brian_priority.xrds create mode 100644 models/openid-php-openid-782224d/Tests/Auth/Yadis/data/delegated-20060809-r1.xrds create mode 100644 models/openid-php-openid-782224d/Tests/Auth/Yadis/data/delegated-20060809-r2.xrds create mode 100644 models/openid-php-openid-782224d/Tests/Auth/Yadis/data/delegated-20060809.xrds create mode 100644 models/openid-php-openid-782224d/Tests/Auth/Yadis/data/example-xrds.xml create mode 100644 models/openid-php-openid-782224d/Tests/Auth/Yadis/data/no-xrd.xml create mode 100644 models/openid-php-openid-782224d/Tests/Auth/Yadis/data/not-xrds.xml create mode 100644 models/openid-php-openid-782224d/Tests/Auth/Yadis/data/pip.xrds create mode 100644 models/openid-php-openid-782224d/Tests/Auth/Yadis/data/prefixsometimes.xrds create mode 100644 models/openid-php-openid-782224d/Tests/Auth/Yadis/data/ref.xrds create mode 100644 models/openid-php-openid-782224d/Tests/Auth/Yadis/data/sometimesprefix.xrds create mode 100644 models/openid-php-openid-782224d/Tests/Auth/Yadis/data/spoof1.xrds create mode 100644 models/openid-php-openid-782224d/Tests/Auth/Yadis/data/spoof2.xrds create mode 100644 models/openid-php-openid-782224d/Tests/Auth/Yadis/data/spoof3.xrds create mode 100644 models/openid-php-openid-782224d/Tests/Auth/Yadis/data/subsegments.xrds create mode 100644 models/openid-php-openid-782224d/Tests/Auth/Yadis/data/test1-discover.txt create mode 100644 models/openid-php-openid-782224d/Tests/Auth/Yadis/data/test1-parsehtml.txt create mode 100644 models/openid-php-openid-782224d/Tests/Auth/Yadis/data/test1-xrd.xml create mode 100644 models/openid-php-openid-782224d/Tests/Auth/Yadis/data/uri_priority.xrds (limited to 'models/openid-php-openid-782224d/Tests/Auth/Yadis/data') diff --git a/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/README b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/README new file mode 100644 index 000000000..3739cf1c7 --- /dev/null +++ b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/README @@ -0,0 +1,12 @@ +delegated-20060809.xrds - results from proxy.xri.net, determined by + Drummond and Kevin to be incorrect. +delegated-20060809-r1.xrds - Drummond's 1st correction +delegated-20060809-r2.xrds - Drummond's 2nd correction + +spoofs: keturn's (=!E4)'s attempts to log in with Drummond's i-number (=!D2) +spoof1.xrds +spoof2.xrds +spoof3.xrds - attempt to steal @!C0!D2 by having "at least one" CanonicalID + match the $res service ProviderID. + +ref.xrds - resolving @ootao*test.ref, which refers to a neustar XRI. diff --git a/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/accept.txt b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/accept.txt new file mode 100644 index 000000000..0853321a8 --- /dev/null +++ b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/accept.txt @@ -0,0 +1,118 @@ +# Accept: [Accept: header value from RFC2616, +# http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html] +# Available: [whitespace-separated content types] +# Expected: [Accept-header like list, containing the available content +# types with their q-values] + +Accept: */* +Available: text/plain +Expected: text/plain; q=1.0 + +Accept: */* +Available: text/plain, text/html +Expected: text/plain; q=1.0, text/html; q=1.0 + +# The order matters +Accept: */* +Available: text/html, text/plain +Expected: text/html; q=1.0, text/plain; q=1.0 + +Accept: text/*, */*; q=0.9 +Available: text/plain, image/jpeg +Expected: text/plain; q=1.0, image/jpeg; q=0.9 + +Accept: text/*, */*; q=0.9 +Available: image/jpeg, text/plain +Expected: text/plain; q=1.0, image/jpeg; q=0.9 + +# wildcard subtypes still reject differing main types +Accept: text/* +Available: image/jpeg, text/plain +Expected: text/plain; q=1.0 + +Accept: text/html +Available: text/html +Expected: text/html; q=1.0 + +Accept: text/html, text/* +Available: text/html +Expected: text/html; q=1.0 + +Accept: text/html, text/* +Available: text/plain, text/html +Expected: text/plain; q=1.0, text/html; q=1.0 + +Accept: text/html, text/*; q=0.9 +Available: text/plain, text/html +Expected: text/html; q=1.0, text/plain; q=0.9 + +# If a more specific type has a higher q-value, then the higher value wins +Accept: text/*; q=0.9, text/html +Available: text/plain, text/html +Expected: text/html; q=1.0, text/plain; q=0.9 + +Accept: */*, text/*; q=0.9, text/html; q=0.1 +Available: text/plain, text/html, image/monkeys +Expected: image/monkeys; q=1.0, text/plain; q=0.9, text/html; q=0.1 + +Accept: text/*, text/html; q=0 +Available: text/html +Expected: + +Accept: text/*, text/html; q=0 +Available: text/html, text/plain +Expected: text/plain; q=1.0 + +Accept: text/html +Available: text/plain +Expected: + +Accept: application/xrds+xml, text/html; q=0.9 +Available: application/xrds+xml, text/html +Expected: application/xrds+xml; q=1.0, text/html; q=0.9 + +Accept: application/xrds+xml, */*; q=0.9 +Available: application/xrds+xml, text/html +Expected: application/xrds+xml; q=1.0, text/html; q=0.9 + +Accept: application/xrds+xml, application/xhtml+xml; q=0.9, text/html; q=0.8, text/xml; q=0.7 +Available: application/xrds+xml, text/html +Expected: application/xrds+xml; q=1.0, text/html; q=0.8 + +# See http://www.rfc-editor.org/rfc/rfc3023.txt, section A.13 +Accept: application/xrds +Available: application/xrds+xml +Expected: + +Accept: application/xrds+xml +Available: application/xrds +Expected: + +Accept: application/xml +Available: application/xrds+xml +Expected: + +Available: application/xrds+xml +Accept: application/xml +Expected: + + + +################################################# +# The tests below this line are documentation of how this library +# works. If the implementation changes, it's acceptable to change the +# test to reflect that. These are specified so that we can make sure +# that the current implementation actually works the way that we +# expect it to given these inputs. + +Accept: text/html;level=1 +Available: text/html +Expected: text/html; q=1.0 + +Accept: text/html; level=1, text/html; level=9; q=0.1 +Available: text/html +Expected: text/html; q=1.0 + +Accept: text/html; level=9; q=0.1, text/html; level=1 +Available: text/html +Expected: text/html; q=1.0 diff --git a/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/brian.multi.xrds b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/brian.multi.xrds new file mode 100644 index 000000000..1bc95dea9 --- /dev/null +++ b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/brian.multi.xrds @@ -0,0 +1,38 @@ + + + + + + http://openid.net/signon/1.1 + http://www.myopenid.com/server + http://frank.myopenid.com/ + + + + + + + http://bar.com/ + http://bar.com/server + + + + http://foo.com + http://foo.com/server + + + + + + + http://openid.net/signon/1.0 + http://www.myopenid.com/server + http://brian.myopenid.com/ + + + + + diff --git a/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/brian.multi_uri.xrds b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/brian.multi_uri.xrds new file mode 100644 index 000000000..fce5ef72f --- /dev/null +++ b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/brian.multi_uri.xrds @@ -0,0 +1,16 @@ + + + + + + http://openid.net/signon/1.0 + http://www.myopenid.com/server + http://example.com/server + + + + + diff --git a/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/brian.xrds b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/brian.xrds new file mode 100644 index 000000000..c7539fe1b --- /dev/null +++ b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/brian.xrds @@ -0,0 +1,16 @@ + + + + + + http://openid.net/signon/1.0 + http://www.myopenid.com/server + http://brian.myopenid.com/ + + + + + diff --git a/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/brian_priority.xrds b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/brian_priority.xrds new file mode 100644 index 000000000..273077dfa --- /dev/null +++ b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/brian_priority.xrds @@ -0,0 +1,22 @@ + + + + + + http://openid.net/signon/1.0 + http://www.schtuff.com/?action=openid_server + http://users.schtuff.com/brian + + + + http://openid.net/signon/1.0 + http://www.myopenid.com/server + http://brian.myopenid.com/ + + + + + diff --git a/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/delegated-20060809-r1.xrds b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/delegated-20060809-r1.xrds new file mode 100644 index 000000000..f994b140e --- /dev/null +++ b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/delegated-20060809-r1.xrds @@ -0,0 +1,34 @@ + + + + *ootao + + 2006-08-09T22:07:13.000Z + xri://@ + !5BAD.2AA.3C72.AF46 + @!5BAD.2AA.3C72.AF46 + + xri://$res*auth*($v*2.0) + xri://!!1003 + application/xrds+xml;trust=none + http://resolve.ezibroker.net/resolve/@ootao/ + + + http://openid.net/signon/1.0 + + https://linksafe.ezibroker.net/server/ + + + + *test1 + SUCCESS + xri://!!1003 + !0000.0000.3B9A.CA01 + @!5BAD.2AA.3C72.AF46!0000.0000.3B9A.CA01 + + http://openid.net/signon/1.0 + + https://linksafe.ezibroker.net/server/ + + + diff --git a/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/delegated-20060809-r2.xrds b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/delegated-20060809-r2.xrds new file mode 100644 index 000000000..68c08dc44 --- /dev/null +++ b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/delegated-20060809-r2.xrds @@ -0,0 +1,34 @@ + + + + *ootao + + 2006-08-09T22:07:13.000Z + xri://@ + !5BAD.2AA.3C72.AF46 + @!5BAD.2AA.3C72.AF46 + + xri://$res*auth*($v*2.0) + xri://@!5BAD.2AA.3C72.AF46 + application/xrds+xml;trust=none + http://resolve.ezibroker.net/resolve/@ootao/ + + + http://openid.net/signon/1.0 + + https://linksafe.ezibroker.net/server/ + + + + *test1 + SUCCESS + xri://@!5BAD.2AA.3C72.AF46 + !0000.0000.3B9A.CA01 + @!5BAD.2AA.3C72.AF46!0000.0000.3B9A.CA01 + + http://openid.net/signon/1.0 + + https://linksafe.ezibroker.net/server/ + + + diff --git a/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/delegated-20060809.xrds b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/delegated-20060809.xrds new file mode 100644 index 000000000..073ee6889 --- /dev/null +++ b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/delegated-20060809.xrds @@ -0,0 +1,34 @@ + + + + *ootao + + 2006-08-09T22:07:13.000Z + xri://@ + !5BAD.2AA.3C72.AF46 + @!5BAD.2AA.3C72.AF46 + + xri://$res*auth*($v*2.0) + + application/xrds+xml;trust=none + http://resolve.ezibroker.net/resolve/@ootao/ + + + http://openid.net/signon/1.0 + + https://linksafe.ezibroker.net/server/ + + + + *test1 + SUCCESS + xri://!!1003 + !0000.0000.3B9A.CA01 + @!5BAD.2AA.3C72.AF46!0000.0000.3B9A.CA01 + + http://openid.net/signon/1.0 + + https://linksafe.ezibroker.net/server/ + + + diff --git a/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/example-xrds.xml b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/example-xrds.xml new file mode 100644 index 000000000..101ba3bd5 --- /dev/null +++ b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/example-xrds.xml @@ -0,0 +1,14 @@ + + + + + + + http://example.com/ + http://www.openidenabled.com/ + + + + diff --git a/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/no-xrd.xml b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/no-xrd.xml new file mode 100644 index 000000000..ca66f7359 --- /dev/null +++ b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/no-xrd.xml @@ -0,0 +1,7 @@ + + + diff --git a/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/not-xrds.xml b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/not-xrds.xml new file mode 100644 index 000000000..7f5bfd511 --- /dev/null +++ b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/not-xrds.xml @@ -0,0 +1,2 @@ + + diff --git a/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/pip.xrds b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/pip.xrds new file mode 100644 index 000000000..ca271ab19 --- /dev/null +++ b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/pip.xrds @@ -0,0 +1,22 @@ + + + + + + http://openid.net/signon/1.1 + http://openid.net/sreg/1.0 + https://pip.verisignlabs.com/server + + + + http://openid.net/signon/1.0 + http://openid.net/sreg/1.0 + https://pip.verisignlabs.com/server + + + + + diff --git a/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/prefixsometimes.xrds b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/prefixsometimes.xrds new file mode 100644 index 000000000..5522a6e5e --- /dev/null +++ b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/prefixsometimes.xrds @@ -0,0 +1,34 @@ + + + + *ootao + + 2006-08-09T22:07:13.000Z + xri://@ + !5BAD.2AA.3C72.AF46 + @!5BAD.2AA.3C72.AF46 + + xri://$res*auth*($v*2.0) + xri://@!5BAD.2AA.3C72.AF46 + application/xrds+xml;trust=none + http://resolve.ezibroker.net/resolve/@ootao/ + + + http://openid.net/signon/1.0 + + https://linksafe.ezibroker.net/server/ + + + + *test1 + SUCCESS + xri://@!5BAD.2AA.3C72.AF46 + !0000.0000.3B9A.CA01 + xri://@!5BAD.2AA.3C72.AF46!0000.0000.3B9A.CA01 + + http://openid.net/signon/1.0 + + https://linksafe.ezibroker.net/server/ + + + diff --git a/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/ref.xrds b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/ref.xrds new file mode 100644 index 000000000..69cf683db --- /dev/null +++ b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/ref.xrds @@ -0,0 +1,109 @@ + + + + *ootao + + 2006-08-15T18:56:09.000Z + xri://@ + !5BAD.2AA.3C72.AF46 + @!5BAD.2AA.3C72.AF46 + + xri://$res*auth*($v*2.0) + + application/xrds+xml;trust=none + http://resolve.ezibroker.net/resolve/@ootao/ + + + http://openid.net/signon/1.0 + + https://linksafe.ezibroker.net/server/ + + + + *test.ref + SUCCESS + xri://!!1003 + !0000.0000.3B9A.CA03 + @!5BAD.2AA.3C72.AF46!0000.0000.3B9A.CA03 + @!BAE.A650.823B.2475 + + http://openid.net/signon/1.0 + + https://linksafe.ezibroker.net/server/ + + + + + !BAE.A650.823B.2475 + + 2006-08-15T18:56:10.000Z + xri://@ + !BAE.A650.823B.2475 + @!BAE.A650.823B.2475 + + (+wdnc) + + (+wdnc) + http://www.tcpacompliance.us + + + xri://$res*auth*($v*2.0) + + application/xrds+xml;trust=none + http://dev.dready.org/cgi-bin/xri + + + (+i-name) + + (+i-name) + http://www.inames.net + + + xri://+i-service*(+contact)*($v*1.0) + + xri://!!1001 + (+contact) + + text/html + + http://www.neustar.biz + + + + + !BAE.A650.823B.2475 + + 2006-08-15T18:56:10.000Z + xri://@ + !BAE.A650.823B.2475 + @!BAE.A650.823B.2475 + + (+wdnc) + + (+wdnc) + http://www.tcpacompliance.us + + + xri://$res*auth*($v*2.0) + + application/xrds+xml;trust=none + http://dev.dready.org/cgi-bin/xri + + + (+i-name) + + (+i-name) + http://www.inames.net + + + xri://+i-service*(+contact)*($v*1.0) + + xri://!!1001 + (+contact) + + text/html + + http://www.neustar.biz + + + \ No newline at end of file diff --git a/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/sometimesprefix.xrds b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/sometimesprefix.xrds new file mode 100644 index 000000000..eff755543 --- /dev/null +++ b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/sometimesprefix.xrds @@ -0,0 +1,34 @@ + + + + *ootao + + 2006-08-09T22:07:13.000Z + xri://@ + !5BAD.2AA.3C72.AF46 + xri://@!5BAD.2AA.3C72.AF46 + + xri://$res*auth*($v*2.0) + xri://@!5BAD.2AA.3C72.AF46 + application/xrds+xml;trust=none + http://resolve.ezibroker.net/resolve/@ootao/ + + + http://openid.net/signon/1.0 + + https://linksafe.ezibroker.net/server/ + + + + *test1 + SUCCESS + xri://@!5BAD.2AA.3C72.AF46 + !0000.0000.3B9A.CA01 + @!5BAD.2AA.3C72.AF46!0000.0000.3B9A.CA01 + + http://openid.net/signon/1.0 + + https://linksafe.ezibroker.net/server/ + + + diff --git a/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/spoof1.xrds b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/spoof1.xrds new file mode 100644 index 000000000..8e870c815 --- /dev/null +++ b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/spoof1.xrds @@ -0,0 +1,25 @@ + + + + *keturn + xri://= + !E4 + =!E4 + + + xri://$res*auth*($v*2.0) + http://keturn.example.com/resolve/ + =!E4 + + + + *isDrummond + =!E4 + !D2 + =!D2 + + http://openid.net/signon/1.0 + http://keturn.example.com/openid + + + diff --git a/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/spoof2.xrds b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/spoof2.xrds new file mode 100644 index 000000000..7547561e1 --- /dev/null +++ b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/spoof2.xrds @@ -0,0 +1,25 @@ + + + + *keturn + xri://= + !E4 + =!E4 + + + xri://$res*auth*($v*2.0) + http://keturn.example.com/resolve/ + xri://= + + + + *isDrummond + xri://= + !D2 + =!D2 + + http://openid.net/signon/1.0 + http://keturn.example.com/openid + + + diff --git a/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/spoof3.xrds b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/spoof3.xrds new file mode 100644 index 000000000..f4c43c9b4 --- /dev/null +++ b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/spoof3.xrds @@ -0,0 +1,37 @@ + + + + *keturn + xri://@ + @E4 + @!E4 + + + xri://$res*auth*($v*2.0) + http://keturn.example.com/resolve/ + @!E4 + + + + *is + @!E4 + !D2 + =!C0 + =!E4!01 + + xri://$res*auth*($v*2.0) + http://keturn.example.com/resolve/ + @!C0 + + + + *drummond + @!C0 + !D2 + @!C0!D2 + + http://openid.net/signon/1.0 + http://keturn.example.com/openid + + + diff --git a/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/subsegments.xrds b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/subsegments.xrds new file mode 100644 index 000000000..11d2e9122 --- /dev/null +++ b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/subsegments.xrds @@ -0,0 +1,58 @@ + + + + *nishitani + + 2007-12-25T11:33:39.000Z + xri://= + !E117.EF2F.454B.C707 + =!E117.EF2F.454B.C707 + + http://openid.net/signon/1.0 + xri://!!1003!103 + https://linksafe.ezibroker.net/server/ + + + xri://$res*auth*($v*2.0) + xri://!!1003!103 + application/xrds+xml;trust=none + http://resolve.ezibroker.net/resolve/=nishitani/ + + + xri://+i-service*(+forwarding)*($v*1.0) + + xri://!!1003!103 + (+index) + + http://linksafe-forward.ezibroker.net/forwarding/ + + + + *masaki + SUCCESS + xri://!!1003 + !0000.0000.3B9A.CA01 + =!E117.EF2F.454B.C707!0000.0000.3B9A.CA01 + + http://openid.net/signon/1.0 + xri://!!1003!103 + https://linksafe.ezibroker.net/server/ + + + xri://+i-service*(+contact)*($v*1.0) + + xri://!!1003!103 + (+contact) + + http://linksafe-contact.ezibroker.net/contact/ + + + xri://+i-service*(+forwarding)*($v*1.0) + + xri://!!1003!103 + (+index) + + http://linksafe-forward.ezibroker.net/forwarding/ + + + diff --git a/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/test1-discover.txt b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/test1-discover.txt new file mode 100644 index 000000000..7ec9b8788 --- /dev/null +++ b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/test1-discover.txt @@ -0,0 +1,137 @@ +equiv +Status: 200 OK +Content-Type: text/html + + + + +Joe Schmoe's Homepage + + +

Joe Schmoe's Homepage

+

Blah blah blah blah blah blah blah

+ + + +header +Status: 200 OK +Content-Type: text/html +YADIS_HEADER: URL_BASE/xrds + + + +Joe Schmoe's Homepage + + +

Joe Schmoe's Homepage

+

Blah blah blah blah blah blah blah

+ + +xrds +Status: 200 OK +Content-Type: application/xrds+xml + + + +xrds_ctparam +Status: 200 OK +Content-Type: application/xrds+xml; charset=UTF8 + + + +xrds_ctcase +Status: 200 OK +Content-Type: appliCATION/XRDS+xml + + + +xrds_html +Status: 200 OK +Content-Type: text/html + + + +redir_equiv +Status: 302 Found +Content-Type: text/plain +Location: URL_BASE/equiv + +You are presently being redirected. + +redir_header +Status: 302 Found +Content-Type: text/plain +Location: URL_BASE/header + +You are presently being redirected. + +redir_xrds +Status: 302 Found +Content-Type: application/xrds+xml +Location: URL_BASE/xrds + + + +redir_xrds_html +Status: 302 Found +Content-Type: text/plain +Location: URL_BASE/xrds_html + +You are presently being redirected. + +redir_redir_equiv +Status: 302 Found +Content-Type: text/plain +Location: URL_BASE/redir_equiv + +You are presently being redirected. + +lowercase_header +Status: 200 OK +Content-Type: text/html +x-xrds-location: URL_BASE/xrds + + + +Joe Schmoe's Homepage + + +

Joe Schmoe's Homepage

+

Blah blah blah blah blah blah blah

+ + +404_server_response +Status: 404 Not Found + +EEk! + +500_server_response +Status: 500 Server error + +EEk! + +201_server_response +Status: 201 Created + +EEk! + +404_with_header +Status: 404 Not Found +YADIS_HEADER: URL_BASE/xrds + +EEk! + +404_with_meta +Status: 404 Not Found +Content-Type: text/html + + + + +Joe Schmoe's Homepage + + +

Joe Schmoe's Homepage

+

Blah blah blah blah blah blah blah

+ + diff --git a/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/test1-parsehtml.txt b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/test1-parsehtml.txt new file mode 100644 index 000000000..752ad091d --- /dev/null +++ b/models/openid-php-openid-782224d/Tests/Auth/Yadis/data/test1-parsehtml.txt @@ -0,0 +1,149 @@ +found + + + +found + + + +found + + + +found + + + +found + + + +found + + + +found + + + +found + + + +EOF + +