summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* #130: PHP 7 compatibility (fixes #129)HEADorigin/masterorigin/HEADmasterOleksandr Zahorulia2016-09-3026-74/+81
|
* fix for rest of dl() calls, also avoid ini_set() as may not work on safe_modeChris Buckley2011-05-031-1/+1
|
* Made some hardcoded tmp paths dynamic by using sys_get_temp_dir. If function ↵Philipp Söhnlein2011-01-161-9/+14
| | | | is not available the old mechanisms are used.
* Added the following patch from the trac.openidenabled.com bug tracker:Lilli2010-02-1613-54/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://trac.openidenabled.com/trac/ticket/337 (http://trac.openidenabled.com/trac/attachment/ticket/337/php-openid-php5.3.patch) Patch makes php-openid library compatible with PHP 5.3, and included changes to many files. Original Message: Reported by: http://bfarber.myopenid.com/ Opened 7 months ago Last modified 2 months ago PHP OpenID libraries do not work on PHP 5.3 "In my own application the script simply stops working at function Auth_OpenID_setNoMathSupport() { if (!defined('Auth_OpenID_NO_MATH_SUPPORT')) { define('Auth_OpenID_NO_MATH_SUPPORT', true); } } (Namespace issue perhaps?) I downloaded the latest 2.1.3 libraries available from the site here and set them up on my local server. Using PHP 5.2.9 they work fine (with some notices) however using PHP 5.3 they don't work at all. I just get this one a white screen Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\openid\php-openid-2.1.3\examples\consumer\common.php on line 72 Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\openid\php-openid-2.1.3\Auth\OpenID\Consumer.php on line 271 Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\openid\php-openid-2.1.3\Auth\OpenID\Consumer.php on line 273" It should be noted that 34 hunks across about 22 files failed, and I applied most of them manually. 37 files were patched.
* Added the following patch from the dev@openidenabled.com mailing list:Lilli2010-02-121-1/+1
| | | | | | | | | | | | | | | | | | | | | http://lists.openidenabled.com/pipermail/dev/attachments/20090101/217f2590/attachment.bin Original Message: dev-list-openidenabled at thequod.de dev-list-openidenabled at thequod.de Thu Jan 1 18:14:12 PST 2009 darcs patch: php-openid-urldecode-urlparamkey "This patch also decodes the key of URL params, which is required for param names like 'action[foo]' when the browser sends those urlencoded (Konqueror 4.2 does so). I would like to propose using rawurldecode instead of urldecode, too, but that causes the tests to fail and may be against the OpenID spec (the difference is only that "+" gets decoded with urldecode() but not with rawurldecode IIRC)" This patch was in the form of a Darcs patch, not a normal patch. So solve this, I applied it to the Darcs repository found on openidenabled, then created a new diff file between the original Darcs repo and the new one (with the patch applied) so that I could apply it to this git repo. All hunks were applied successfully.
* Added the following patch from the dev@openidenabled.com mailing list:Lilli2010-02-101-6/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://lists.openidenabled.com/pipermail/dev/attachments/20080221/f087874e/attachment.obj Original Messages: Ryan Patterson cgamesplay at cgamesplay.com Thu Feb 21 10:57:56 PST 2008 OpenIDStore for PEAR::MDB2 "On Thu, Feb 21, 2008 at 10:24 AM, Thomas Harning <thomas.harning at trustbearer.com> wrote: > Shortening the URLs to 255 chars has some ugly problems since the spec states > that the max Server URL can technically be up to 2047 bytes (per OpenID 1.1-Appendix D) Ah, I glanced at the spec but didn't see anything. > One option for databases that can't have a key large enough is using a prefix-based key... > I know MySQL supports this, but I'm not so sure on others. This is what the current SQLStore implementation does. I've modified the patch to add specific SQL for mysql backends, but use MDB2's generic table creation for other stores. The test cases in the patch pass for MDB2 using MySQL, but I'd like to verify that it works with PostgreSQL. -- Regards, Ryan Patterson <mailto:cgamesplay at cgamesplay.com>" Thomas Harning thomas.harning at trustbearer.com Thu Feb 21 07:24:02 PST 2008 OpenIDStore for PEAR::MDB2 "Ryan Patterson wrote: > I've created an Auth_OpenID_OpenIDStore implementation that utilizes > PEAR::MDB2 instead of PEAR::DB, called Auth_OpenID_MDB2Store. The > advantages to this store are that it supports all database back ends > that PEAR::MDB2 supports, and does not require the user to know which > database back end is being used when instantiating the store. Because > of the complete database abstraction, the entire store is > approximately 350 lines shorter than the SQLStore family. > > As a note to users planning to test this store: the table schema is > incompatible with the other SQLStores. Specifically, the length of > server URLs has been shortened to 255 characters to allow cross-RDBMS > compatibility, and the field types have been changed to NOT NULL. You > may safely delete your associations and nonces tables with no > consequences. Shortening the URLs to 255 chars has some ugly problems since the spec states that the max Server URL can technically be up to 2047 bytes (per OpenID 1.1-Appendix D) One option for databases that can't have a key large enough is using a prefix-based key... I know MySQL supports this, but I'm not so sure on others. Another option would be to use a unique value as the primary key and use some ugly mechanics so that you can store a 20 byte sha1 in a non-unique index and the server URL not in an index. The basic select would be SELECT * FROM Sites WHERE URLHash = ? AND URL = ?; The URLHash would narrow it down to likely one, where URL would clobber potential collisions and keep the data around if needed... -- Thomas Harning @ TrustBearer Labs (http://www.trustbearer.com) Secure OpenID: https://openid.trustbearer.com/harningt 3201 Stellhorn Road 260-399-1656 Fort Wayne, IN 46815" OpenIDStore for PEAR::MDB2 Ryan Patterson cgamesplay at cgamesplay.com Thu Feb 21 07:19:02 PST 2008 "I've created an Auth_OpenID_OpenIDStore implementation that utilizes PEAR::MDB2 instead of PEAR::DB, called Auth_OpenID_MDB2Store. The advantages to this store are that it supports all database back ends that PEAR::MDB2 supports, and does not require the user to know which database back end is being used when instantiating the store. Because of the complete database abstraction, the entire store is approximately 350 lines shorter than the SQLStore family. As a note to users planning to test this store: the table schema is incompatible with the other SQLStores. Specifically, the length of server URLs has been shortened to 255 characters to allow cross-RDBMS compatibility, and the field types have been changed to NOT NULL. You may safely delete your associations and nonces tables with no consequences. A test case has been added that tests the MDB2 store with a MySQL backend. I would appreciate it if someone capable could modify the test case and test it using PostgreSQL, to ensure that the database abstraction I've used is correct. -- Regards, Ryan Patterson <mailto:cgamesplay at cgamesplay.com>" All of the patch's hunks were applied successfully.
* Added the changes to consumer and consumer test that were made to ↵Lilli2010-02-081-18/+42
| | | | openidenabled.com's repo after the repo was moved to git hub
* [ remove closing ?> tag from all files ]Luke Shepard2009-05-2836-36/+16
| | | | | | | | | | | | Reviewed By: Will Norris Facebook has a policy to not have closing ?> tags at the bottom of PHP files. It can unintentionally introduce newlines which causes ridiculous bugs. This is recommended in the Zend style guide: http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html Signed-off-by: Will Norris <will@willnorris.com>
* Revert "[ remove closing ?> tag from all files ]"Luke Shepard2009-05-2736-22/+42
| | | | | | This reverts commit a2bdc5c6129ff11b1c1e29a207b1b80153ac6fb0. I'm going to stop playing in bce's fork, and start messing in my own. Sorry for the mess Brian :)
* Revert "[ correct errors in removing trailing ?> ]"Luke Shepard2009-05-272-6/+6
| | | | This reverts commit f963a700e4440074a5b86d382789e75795206482.
* [ correct errors in removing trailing ?> ]Luke Shepard2009-05-272-6/+6
| | | | | | | | In the last commit, I over-aggressively removed closing PHP tags. While I dislike the practice of using close tags within templates, it is how this library works, so let's put them back. Checked that all PHP compiles with "php -l".
* [ remove closing ?> tag from all files ]Luke Shepard2009-05-2736-42/+22
| | | | | | | | | | Reviewed By: Will Norris Facebook has a policy to not have closing ?> tags at the bottom of PHP files. It can unintentionally introduce newlines which causes ridiculous bugs. This is recommended in the Zend style guide: http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html
* [ Upgrading php-openid test framework to use PHPUnit 3.3 ]Luke Shepard2009-05-2733-235/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed By: Will Norris The set of tests assumes PHPUnit 2.3, which conflicts with my environment setup. I think PHPUnit 3.3 is pretty widespread now, and under active maintenance (latest rev 4/10/2009). There's a few changes included here. I did a few mostly automated code transformations: replace "PHPUnit_TestCase" "PHPUnit_Framework_TestCase" replace "PHPUnit_TestSuite" "PHPUnit_Framework_TestSuite" removed all require_once "PHPUnit.php" - they are unnecessary. "call by reference" is now deprecated, so changed "&$" to "$" I also made a few changes to admin/testtext.php and Tests/TestDriver.php to accomodate the new syntax. Note that this just upgrades the framework; it does not guarantee that all tests pass. I'll submit future diffs to fix or disable failing unit tests. I wasn't able to get the tests running with the previous version, so I don't know if these have always been failing. I doubt that the github has automatically running unit tests, but if so then we'll have to make sure that the central repo is running the same version of PHPUnit.
* [project @ If we're generating user_setup_urls, let's at least do it correctly]tailor2008-07-111-3/+6
|
* [project @ Do not attempt HMAC-SHA256 tests if HMAC-SHA256 is not supported]http://j3h.us/2008-06-201-3/+7
|
* [project @ Test and fix HMAC-SHA256]http://j3h.us/2008-06-202-10/+45
|
* [project @ Rename files and tests related to HMACSHA1 and HMACSHA256]http://j3h.us/2008-06-205-26/+32
|
* [project @ Add test cases for trust roots with non-ASCII characters in path ↵tailor2008-06-111-1/+3
| | | | or hostname]
* [project @ Auth_OpenID_urinorm: fail to parse URIs with non-ASCII characters]tailor2008-06-111-0/+8
|
* [project @ Do not send namespace aliases for extensions with OpenID 1 ↵tailor2008-06-062-0/+47
| | | | | | | | messages that we create] This makes the library compatible with the 1.x series of this library, since it did not handle arbitrary query keys with dots in them (PHP mangles . to _)
* [project @ message: allow two values for OPENID1_NS]Kevin Turner2008-06-063-9/+170
| | | | | | | message: allow two values for OPENID1_NS Also: * fix op_endpoint bug in Server.php * always treat OpenID 1 namespace as implicit in messages we create
* [project @ Deprecate Auth_OpenID_CheckIDRequest::namespace and stop using == ↵Kevin Turner2008-06-051-4/+12
| | | | Auth_OpenID_OPENID1_NS anywhere in server]
* [project @ add test for Auth_Yadis_getCanonicalId with subsegments]tailor2008-06-052-0/+66
|
* [project @ Fix Auth_OpenID_getAllowedReturnURLs, ↵tailor2008-06-051-0/+63
| | | | Auth_Yadis_DiscoveryResult::usedYadisLocation, add Auth_Yadis_getServiceEndpoints, tests]
* [project @ TestDriver.php: load "_other" tests regardless of primary test ↵tailor2008-06-051-6/+8
| | | | class type]
* [project @ handle empty string for trustroot the same as missing]tailor2008-06-051-0/+17
|
* [project @ #204 MalformedTrustRoot returned by the library now gets passed ↵tailor2008-06-051-0/+12
| | | | the OpenID Message object instead of null]
* [project @ Silence session_start warnings that are output for older builds ↵tailor2008-06-051-1/+1
| | | | of PHP 4.3 so the build passes]
* [project @ #229 Server.php: test hasReturnTo() when message=null]tailor2008-06-041-0/+8
|
* [project @ Add HTTP case to trustroot test cases]Kevin Turner2008-06-041-1/+2
|
* [project @ Add an extra parsehtml testcase - no close script tag]tailor2008-06-041-0/+4
|
* [project @ fix typo in test data]tailor2008-06-041-1/+1
|
* [project @ Fix #220: Use return_to from request when generating form markup ↵tailor2008-06-041-0/+17
| | | | in Server.php]
* [project @ Test Server.php fix the error message if test_nomode fails]tailor2008-06-041-1/+1
|
* [project @ Port the v2 plaintext encryption test from python]tailor2008-06-041-0/+43
|
* [project @ Fix trust root test runner and then all failing tests that were ↵tailor2008-06-043-12/+20
| | | | exposed]
* [project @ Auth_OpenID_CheckIDRequest::fromMessage: return ↵Kevin Turner2008-06-041-0/+32
| | | | Auth_OpenID_ServerError if claimed_id is provided without identity]
* [project @ Auth_OpenID_Decoder::decode: make sure Auth_OpenID_ServerError ↵Kevin Turner2008-06-041-0/+17
| | | | has an Auth_OpenID_Message after encountering invalid OpenID namespace]
* [project @ #224: Tests_Auth_OpenID_CheckID: more test cases for missing ↵Kevin Turner2008-06-041-0/+30
| | | | trust_root/realm]
* [project @ Message->getArg & friends return FailureResponse on error]tailor2008-06-042-14/+22
|
* [project @ Add AX FetchResponse tests, fix bugs]tailor2008-06-031-0/+48
|
* [project @ AX::FetchResponse::fromSuccessResponse - return null when there's ↵tailor2008-06-031-0/+25
| | | | no ax args]
* [project @ Fix PHP tags]tailor2008-06-034-2/+10
|
* [project @ Move MemcachedStore back from contrib, update license and copyright]tailor2008-06-031-2/+52
|
* [project @ normalize return_to before checking]tailor2008-06-031-1/+5
|
* [project @ Consumer._verifyDiscoveryResults: fall back to OpenID 1.0 type if ↵tailor2008-06-021-2/+50
| | | | 1.1 endpoint cannot be found]
* [project @ Move Memcached store to contrib since it's not owned by JanRain]tailor2008-06-021-39/+9
|
* [project @ TestDriver.php: factor instantiating a test suite from a class ↵tailor2008-06-021-19/+26
| | | | name into its own function]
* [project @ TestDriver.php: make global_include_once tell you about failures]tailor2008-06-021-1/+2
|
* [project @ Fix selectTests in TestDriver.php]tailor2008-06-021-24/+12
|
* [project @ Update license strings to say Apache]tailor2008-05-3015-15/+15
|
* [project @ Remove URL fragment in ServiceEndpoint->getDisplayIdentifier]tailor2008-05-301-0/+32
|
* [project @ extra parsehtml testcase: javascript in head]tailor2008-05-291-0/+4
|
* [project @ PAPE: properly use "none" for empty auth policies list]tailor2008-05-291-1/+1
|
* [project @ PAPE: use auth_time instead of auth_age]tailor2008-05-291-20/+22
|
* [project @ Alter AX fromOpenIDRequest() to accept Auth_OpenID_AuthRequest ↵tailor2008-03-211-8/+12
| | | | object instead of Auth_OpenID_Message object so that it matches it's counterpart methods in SREG and PAPE extensions.]
* [project @ fix copyright notices to include 2008]http://mike.glover.myopenid.com2008-05-2715-15/+15
|
* [project @ Be explicit about implicit namespaces]tailor2008-05-273-7/+67
|
* [project @ Send all fields in check_authentication, not just signed ones. ↵tailor2008-05-271-13/+7
| | | | (OpenID 2 compliance)]
* [project @ Add toHTML methods. Server.toFormMarkup passes through form ↵tailor2008-05-231-0/+23
| | | | attributes]
* [project @ Actually use URINorm functionality for Auth_OpenID::normalizeURL]tailor2008-05-211-0/+9
|
* [project @ Extend Yadis HTML discovery regex to support XHTML-style tags]tailor2008-03-131-0/+8
|
* [project @ Remove "warning" text from output of store tests]tailor2008-02-201-3/+3
|
* [project @ Skip HMAC-SHA256 test if not supported]tailor2008-02-071-0/+5
|
* [project @ Add HMAC-SHA256 to plaintext consumer session assoc types]tailor2008-02-071-0/+37
|
* [project @ Change output when skipping memcached tests: warnings upset buildbot]tailor2008-02-041-1/+1
|
* [project @ Whitespace]tailor2008-02-041-1/+1
|
* [project @ Pass instead of fail on failed memcached connection]tailor2008-02-041-2/+3
|
* [project @ hmac-sha256-test]tailor2008-02-021-0/+17
|
* [project @ Implementation of Memcached storage in PHP. This patch also ↵tailor2008-02-022-3/+46
| | | | | | | | includes supportsCleanup() function for OpenIDStore interface, as memcache doesn't allow ] enumeration of all keys used (and cleans itself). Also included test for memcached storage and support for supportsCleanup() in test functions.
* [project @ Failed DB connection is not a fail of test, typo in PG storage test]tailor2008-02-021-4/+4
|
* [project @ Refactored HTML-parsing code to avoid PCRE limits on large matches]tailor2008-01-031-0/+5
|
* [project @ Store test: remove correct sqlite database file]tailor2007-12-311-1/+1
|
* [project @ Fixed typo and minor formatting changes for StoreTest.]Trevor Johns2007-12-291-2/+1
| | | | | | - Removed extra newline. - Changed comment in test_sqlitestore() to read 'sqlite' instead of 'postgres'.
* [project @ Fixed StoreTest to not fail on Mac OS X 10.5]Trevor Johns2007-12-291-1/+1
| | | | | | | | | | | | | Mac OS X 10.5 generates a value for $TMPDIR that looks something like this: /var/folders/uU/uXMNhbRIGkOhaxcg60xSGU+++TI/-Tmp-/ The '+++' is causing the DSN in Tests_Auth_OpenID_StoreTest::test_sqlitestore to become invalid. This invalid DSN causes the SQLite driver to attempt creating a file at a nonexistant path, resulting in a failed test. This is fixed by wrapping the value of $TMPDIR received by the system in a call to urlencode().
* [project @ use-time-instead-of-(gm)mktime]dAniel hAhler2007-12-081-1/+1
| | | | | | | | Use time() instead of (gm)mktime(), when used for getting the current time (called without arguments). According to "hunk ./Auth/OpenID/Nonce.php 99" gmmktime() for PHP4 is buggy and using mktime() makes no sense when called without args: just use time() then directly.
* [project @ Add PAPE tests and update PAPE extension]tailor2007-12-052-0/+245
|
* [project @ Add getDisplayIdentifier() to SuccessResponse]tailor2007-11-191-11/+81
|
* [project @ Fix database creation in tests for hostnames with dashes]tailor2007-11-141-1/+3
|
* [project @ [API CHANGE] Make return_to no longer optional for complete() ↵tailor2007-11-131-39/+87
| | | | calls to consumer]
* [project @ Make setAllowedTypes make sure that the association types and ↵tailor2007-11-131-8/+4
| | | | session types are allowed by OpenID]
* [project @ Fix #60 (passing return_to to consumer.complete() causes spurious ↵tailor2007-11-131-15/+116
| | | | failure when mode is not id_res)]
* [project @ Make Auth_Yadis_identifierScheme handle an empty string]tailor2007-11-131-0/+3
|
* [project @ Update trust root test cases]tailor2007-11-131-7/+27
|
* [project @ Fix Auth_OpenID_Message::getAliasedArg for ns.ALIAS arguments]tailor2007-10-171-3/+9
|
* [project @ r300: update_url must match openid.realm]tailor2007-10-161-0/+60
|
* [project @ r299: Always send count.ALIAS and type.ALIAS]tailor2007-10-161-1/+10
|
* [project @ Ensure that an update_url in a FetchRequest is included in a ↵tailor2007-10-161-0/+15
| | | | FetchResponse]
* [project @ Test minimum supported alias length]tailor2007-10-161-0/+15
|
* [project @ Add support for openid.ax.count.ALIAS="unlimited"]tailor2007-10-161-0/+28
|
* [project @ r305, r330: aliases must not contain periods, commas]tailor2007-10-161-10/+33
|
* [project @ Clean up manager in session when response has different URL from ↵tailor2007-10-161-1/+40
| | | | request]
* [project @ Added AX implementation and tests from python library]tailor2007-10-092-0/+568
|
* [project @ discovery verification changes]tailor2007-10-032-20/+67
| | | | | | | | - OpenID 1 only: Add claimed_id to return_to in requests - OpenID 1, 2: Do discovery on response's claimed_id in the absence of session storage - OpenID 1: Do discovery verification on claimed_id in response rather than the one in the session
* [project @ Fail return_to verification if bare args in response are absent ↵tailor2007-10-021-0/+13
| | | | from return_to]
* [project @ Peform re-discovery when stored information mismatches response]tailor2007-10-022-4/+43
|
* [project @ Change nonce extraction from OpenID response]tailor2007-10-021-1/+3
|
* [project @ Auth_OpenID_Consumer: OpenID 2 draft 12 fragment handling]tailor2007-10-021-1/+34
|
* [project @ Add urldefrag implementation]tailor2007-10-021-0/+23
|
* [project @ Remove fragments as part of normalization]tailor2007-10-012-0/+38
|