Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #509 from tdiscuit/master | Jaime Pérez Crespo | 2017-01-23 | 1 | -0/+1 |
|\ | | | | | Add ability to define additional attributes on ContactPerson element | ||||
| * | Address issues from unit tests | Tyler Antonio | 2016-11-09 | 1 | -0/+1 |
| | | |||||
* | | Minor fixes. | Jaime Pérez Crespo | 2017-01-12 | 2 | -70/+87 |
| | | | | | | | | Formatting, namespaces, phpdoc. | ||||
* | | Merge branch 'store-psr4' of https://github.com/sgomez/simplesamlphp into ↵ | Jaime Pérez Crespo | 2017-01-12 | 2 | -0/+309 |
|\ \ | | | | | | | | | | sgomez-store-psr4 | ||||
| * | | Modified SimpleSAML_Store to PSR-4 | Sergio Gomez | 2016-12-05 | 2 | -0/+309 |
| | | | |||||
* | | | Add a couple of methods to handle conversion between PEM and DER. | Jaime Pérez | 2017-01-10 | 1 | -0/+50 |
| | | | | | | | | | | | | This resolves #476. | ||||
* | | | Minor phpdoc fixes. | Jaime Pérez | 2017-01-10 | 1 | -6/+5 |
|/ / | |||||
* | | Convert from CRLF to LF a couple of files remaining. | Jaime Pérez | 2016-11-30 | 1 | -55/+55 |
| | | |||||
* | | Fix tests depending on Language->language_names | Hanne Moa | 2016-11-15 | 1 | -20/+42 |
|/ | |||||
* | Add unit test for AttributeConsumingService parsing. (#501) | Thijs Kinkhorst | 2016-10-27 | 1 | -0/+44 |
| | |||||
* | Remove tests for removed methods | Hanne Moa | 2016-10-25 | 1 | -40/+1 |
| | |||||
* | Change default domain from "ssp" to "messages". | Jaime Pérez | 2016-10-12 | 1 | -1/+1 |
| | |||||
* | Fix build. | Jaime Pérez | 2016-10-04 | 1 | -4/+4 |
| | |||||
* | Remove unused "use" statements and broken comments. | Jaime Pérez | 2016-10-04 | 1 | -6/+0 |
| | |||||
* | Add easy tests for SimpleSAML/Locale/Translate | Hanne Moa | 2016-09-30 | 1 | -0/+38 |
| | |||||
* | Test module \SimpleSAML\Locale\Localization | Hanne Moa | 2016-08-31 | 1 | -0/+87 |
| | |||||
* | bugfix: Do not try to apply SSP's base URL if REQUEST_URI does not match. | Jaime Pérez | 2016-08-22 | 1 | -2/+14 |
| | | | | It is possible that the current script ($_SERVER['SCRIPT_FILENAME']) is inside SimpleSAMLphp's 'www' directory. However, even if that's the case, we should not enforce our base URL (as set in the 'baseurlpath' configuration option) if the request URI ($_SERVER['REQUEST_URI']) does not contain the relative path to the script. This is the case of AuthMemCookie, for example, where accessing a random URL protected by Apache, leads to the execution of a SimpleSAMLphp script, where SimpleSAML\Utils\HTTP::getSelfURL() must not try to be smart when guessing the current URL. | ||||
* | Bump the version of the SAML2 library. | Jaime Pérez | 2016-07-26 | 2 | -26/+26 |
| | | | | Now we are finally using the 2.x branch of the SAML2 library, which was also migrated to use namespaces. Even though the library provides an autoloader that allows loading the classes with the old names using class aliasing, we need to do the migration in one commit (at least for most part of it). This is due to the way SimpleSAMLphp checks data types, using inheritance to check objects agains abstract or more general classes. Even though class aliasing works, there's no way to replicate those relationships, and type checks that use the old class names will fail because the aliases are virtually new classes that don't inherit from others. | ||||
* | bugfix: Restore the capability to get our self URL when invoked from a ↵ | Jaime Pérez | 2016-07-15 | 1 | -17/+81 |
| | | | | | | | | | | third-party script. Recent fixes for URL guessing and building addressed bugs in the code that were preventing the 'baseurlpath' from being used properly. However, they introduced a new issue, as the code was assuming the current URL would always point to a SimpleSAMLphp script. This is not always true, of course, as any script can invoke our API and end up trying to get its own URL (for example, when calling requireAuth()). In order to fix this, we monitor mismatches between SimpleSAMLphp's installation path and the absolute, real path to the current script. When there's a mismatch, it means we are running a third-party script outside SimpleSAMLphp, and therefore we should NOT enforce 'baseurlpath'. This introduces an additional issue, as applications behind a reverse proxy may cause trouble to guess the right URL (we will use the URL as seen by SimpleSAMLphp in the server, which is not necessarily the same as the user sees with a reverse proxy in between). For the moment, we'll leave the responsibility to sort that issue out to implementors. It might be a good idea to add a page to the wiki explaining how to do this. This resolves #418. | ||||
* | tests: Fix CI build. | Jaime Pérez | 2016-06-27 | 1 | -8/+8 |
| | | | | Now that we are using realpath() to try to obtain the URL relative to the base URL path of SSP, we need to use real scripts or realpath() will return an empty string. | ||||
* | Lowercase true, false & null. | Jaime Perez Crespo | 2016-06-08 | 1 | -34/+34 |
| | |||||
* | Fix the tests to handle the new, more permissive behaviour of ↵ | Jaime Perez Crespo | 2016-06-08 | 1 | -34/+64 |
| | | | | SimpleSAML_Configuration::getBaseURL(), and add tests for getBasePath() too. | ||||
* | Change the implementation of SimpleSAML\Utils\HTTP::getSelfURL() and ↵ | Jaime Perez Crespo | 2016-06-08 | 1 | -0/+74 |
| | | | | getSelfURLNoQuery() to honor the 'baseurlpath' configuration option instead of simply using the environment. They were actually broken since they were using it to build the scheme, host and port, but completely ignoring the path, rendering wrong URLs in between what was configured in 'baseurlpath' and the real information in the environment. This resolves #396, but also affects #5. The changes to getSelfURLNoQuery() in #391 are unnecessary now, since we now basically getting the full URL and remove the query afterwards. | ||||
* | Make sure the modifications to $_SERVER in the tests do not go beyond each test. | Jaime Perez Crespo | 2016-06-07 | 1 | -0/+20 |
| | |||||
* | Add some tests for SimpleSAML\Utils\HTTP::addURLParameters(). | Jaime Perez Crespo | 2016-06-07 | 1 | -2/+45 |
| | |||||
* | Allow regular expression matching of trusted.url.domains. | Jon Dufresne | 2016-06-01 | 1 | -0/+73 |
| | | | | Fixes #379 | ||||
* | Start using the new configuration exceptions, handling error situations that ↵ | Jaime Perez Crespo | 2016-04-20 | 1 | -14/+22 |
| | | | | before led to blank pages or even worse. | ||||
* | Add some tests for the new SimpleSAML\Utils\HTTP::guessBasePath(). | Jaime Perez Crespo | 2016-04-19 | 1 | -0/+47 |
| | |||||
* | Complete the code coverage for SimpleSAML\Utils\Arrays. | Jaime Perez Crespo | 2016-03-04 | 1 | -0/+3 |
| | |||||
* | Typo. | Jaime Perez Crespo | 2016-03-04 | 1 | -1/+1 |
| | |||||
* | Fix mistake in the test just added. | Jaime Perez Crespo | 2016-03-04 | 1 | -3/+4 |
| | |||||
* | Complete unit testing for SimpleSAML\Utils\Time by adding test for ↵ | Jaime Perez Crespo | 2016-03-04 | 1 | -0/+43 |
| | | | | initTimezone(). | ||||
* | Complete the coverage for SimpleSAML\Utils\Time::parseDuration(). | Jaime Perez Crespo | 2016-03-04 | 1 | -19/+45 |
| | |||||
* | Add tests for SimpleSAML\Utils\Time::parseDuration(). | Jaime Perez Crespo | 2016-03-04 | 1 | -0/+77 |
| | |||||
* | Initial test for SimpleSAML\Utils\Time. | Jaime Perez Crespo | 2016-03-03 | 1 | -0/+21 |
| | |||||
* | Rename Utils\HTTP::getSelfHostWithoutPort() to ↵ | Jaime Perez Crespo | 2016-03-03 | 1 | -6/+15 |
| | | | | Utils\HTTP::getSelfHostWithNonStandardPort(), change the logic, and reimplement Utils\HTTP::getSelfHost() to depend on use the former. Complete the tests to include the case of port 443 while using HTTPS. | ||||
* | Fixes issue 337 | Andrés Blanco | 2016-03-02 | 1 | -0/+35 |
| | |||||
* | Move MetadataTest to SimpleSAML\Test\Utils\Config/MetadataTest. | Jaime Perez Crespo | 2016-02-26 | 1 | -41/+44 |
| | |||||
* | Move RandomTest to SimpleSAML\Test\Utils\RandomTest. | Jaime Perez Crespo | 2016-02-26 | 1 | -3/+11 |
| | |||||
* | Move Utils_ConfigTest to SimpleSAML\Test\Utils\ConfigTest. | Jaime Perez Crespo | 2016-02-26 | 1 | -4/+10 |
| | |||||
* | Move Utils_AttributesTest to SimpleSAML\Test\Utils\AttributesTest. | Jaime Perez Crespo | 2016-02-26 | 1 | -16/+19 |
| | |||||
* | Move Utils_ArraysTest to SimpleSAML\Test\Utils\ArraysTest. | Jaime Perez Crespo | 2016-02-26 | 1 | -11/+14 |
| | |||||
* | Move NetTest to SimpleSAML\Test\Utils\NetTest. | Jaime Perez Crespo | 2016-02-26 | 1 | -38/+49 |
| | |||||
* | Move CryptoTest to SimpleSAML\Test\Utils\CryptoTest. | Jaime Perez Crespo | 2016-02-26 | 1 | -8/+19 |
| | |||||
* | RegistrationInfo can be inherited from EntitiesDescriptor | Patrick Radtke | 2016-02-24 | 1 | -7/+55 |
| | |||||
* | Fix php 5.3 syntax issue | Patrick Radtke | 2016-02-23 | 1 | -1/+2 |
| | |||||
* | Expose RegistrationInfo in parsed metadata | Patrick Radtke | 2016-02-23 | 2 | -1/+40 |
| | | | | | - Add test case - Fix .gitignore since it ignored all metadata folders | ||||
* | Add some tests for SimpleSAML\Module. | Jaime Perez Crespo | 2016-02-22 | 1 | -0/+119 |
| | |||||
* | Bugfix. While SimpleSAML\Database::query() returns a PDOStatement, ↵ | Jaime Perez Crespo | 2016-02-17 | 1 | -1/+1 |
| | | | | SimpleSAML\Database::exec() doesn't. Make both return an integer with the amount of rows affected. Add a return value to SimpleSAML_Metadata_MetadataStorageHandlerPdo::initDatabase(). | ||||
* | Tests for SimpleSAML\Locale\Language::getLanguageList(). | Jaime Perez Crespo | 2016-02-09 | 1 | -1/+26 |
| | |||||
* | Tests for SimpleSAML\Locale\Language::isLanguageRTL() + Typo. | Jaime Perez Crespo | 2016-02-09 | 1 | -0/+30 |
| | |||||
* | Add tests for SimpleSAML\Locale\Language::getDefaultLanguage() and fix other ↵ | Jaime Perez Crespo | 2016-02-09 | 1 | -4/+24 |
| | | | | tests for the same class. | ||||
* | Tests for SimpleSAML\Locale\Language::setLanguage(). | Jaime Perez Crespo | 2016-02-09 | 1 | -0/+22 |
| | |||||
* | Tests for SimpleSAML\Locale\Language::getLanguageParameterName(). | Jaime Perez Crespo | 2016-02-09 | 1 | -0/+19 |
| | |||||
* | Add some initial tests for the new SimpleSAML\Locale\Language class. | Jaime Perez Crespo | 2016-02-09 | 1 | -0/+33 |
| | |||||
* | Complete test coverage for SimpleSAML_Configuration::getEndpoints(). | Jaime Perez Crespo | 2016-02-04 | 1 | -2/+109 |
| | |||||
* | Add more tests for SimpleSAML_Configuration. | Jaime Perez Crespo | 2016-02-03 | 1 | -6/+27 |
| | |||||
* | Add more tests for SimpleSAML_Configuration::getDefaultEndpoint() and ↵ | Jaime Perez Crespo | 2016-02-03 | 1 | -2/+55 |
| | | | | SimpleSAML\Utils\Config\Metadata::getDefaultEndpoint(). | ||||
* | Add full test coverage to ↵ | Jaime Perez Crespo | 2016-02-03 | 1 | -0/+36 |
| | | | | SimpleSAML\Utils\Config\Metadata::isHiddenFromDiscovery(). | ||||
* | Complete the test coverage for \SimpleSAML\Utils\Config\Metadata::getContact(). | Jaime Perez Crespo | 2016-02-03 | 1 | -0/+19 |
| | |||||
* | Add some tests for valid SAML endpoint configurations parsing. | Jaime Perez Crespo | 2016-02-03 | 1 | -0/+141 |
| | |||||
* | Add a test for SimpleSAML_Configuration::getConfigList(). | Jaime Perez Crespo | 2016-02-02 | 1 | -0/+17 |
| | |||||
* | Make it possible to pre-load a configuration array into ↵ | Jaime Perez Crespo | 2016-02-02 | 1 | -0/+31 |
| | | | | SimpleSAML_Configuration for subsequent calls to getInstance() to use it. This opens up for unit-testing code that calls SimpleSAML_Configuration::getInstance(). | ||||
* | Clean one-liner comments. | Jaime Perez Crespo | 2015-11-06 | 1 | -1/+1 |
| | |||||
* | s/simpleSAMLphp/SimpleSAMLphp/g | Jaime Perez Crespo | 2015-11-06 | 1 | -1/+1 |
| | | | | (being respectful with occurences that might change the behaviour, i.e. default database prefixes) | ||||
* | Fix tests for SimpleSAML\Utils\Attributes::getExpectedAttribute(). | Jaime Perez Crespo | 2015-09-01 | 1 | -4/+43 |
| | |||||
* | Basic reformatting. | Jaime Perez Crespo | 2015-09-01 | 1 | -11/+24 |
| | |||||
* | Refactor SimpleSAML\Utils\Arrays::normalizeAttributesArray() to ↵ | Jaime Perez Crespo | 2015-09-01 | 2 | -49/+53 |
| | | | | SimpleSAML\Utils\Attributes::normalizeAttributesArray(). | ||||
* | Add a new \SimpleSAML\Utils\Attributes class. | Jaime Perez Crespo | 2015-09-01 | 1 | -0/+101 |
| | |||||
* | Refactor SimpleSAML_Auth_State::extractPersistentAuthState() to ↵ | Jaime Perez Crespo | 2015-08-25 | 1 | -7/+7 |
| | | | | getPersistentAuthData() to avoid confusions around the behaviour of this method. | ||||
* | Move SimpleSAML_Auth_Default::extractPersistentAuthState() to ↵ | Jaime Perez Crespo | 2015-08-12 | 1 | -0/+81 |
| | | | | SimpleSAML_Auth_State::extractPersistentAuthState() and deprecate the former. | ||||
* | Merge branch 'master' of https://github.com/tldev/simplesamlphp into ↵ | Jaime Perez Crespo | 2015-08-11 | 1 | -0/+49 |
|\ | | | | | | | feature/config-from-env | ||||
| * | Added tests for getConfigDir | Tom Johnell | 2015-07-22 | 1 | -0/+49 |
| | | |||||
* | | Move the DatabaseTest to tests/lib/SimpleSAML/ where it belongs. Reformat ↵ | Jaime Perez Crespo | 2015-07-31 | 1 | -0/+297 |
| | | | | | | | | code. Fix a few issues with phpdoc. Removed some unused variable. Use typed methos from SimpleSAML_Configuration instead of getValue(). | ||||
* | | Reimplement \SimpleSAML\Utils\Crypto::aesDecrypt() and ↵ | Jaime Perez Crespo | 2015-07-20 | 1 | -3/+3 |
| | | | | | | | | \SimpleSAML\Utils\Crypto::aesEncrypt() to use openssl instead of mcrypt. This removes the direct dependency on mcrypt and closes #228. | ||||
* | | Use always the private methods to test AES encryption/decryption. | Jaime Perez Crespo | 2015-06-22 | 1 | -2/+8 |
| | | |||||
* | | Move the aes[En|De]crypt() functionality in \SimpleSAML\Utils\Crypto to ↵ | Jaime Perez Crespo | 2015-06-20 | 1 | -0/+72 |
| | | | | | | | | internal methods where the secret is passed as a parameter. Then we don't need a working configuration to test the functionality. | ||||
* | | Revert "Add some tests for SimpleSAML\Utils\Crypto." | Jaime Perez Crespo | 2015-06-14 | 1 | -48/+0 |
| | | | | | | | | This reverts commit aec9571dc85c861ac0b6e081782aae30f9b6d2c1. | ||||
* | | Add some tests for SimpleSAML\Utils\Crypto. | Jaime Perez Crespo | 2015-06-14 | 1 | -0/+48 |
|/ | |||||
* | Add tests for SimpleSAML\Utils\Random. | Jaime Perez Crespo | 2015-05-27 | 1 | -0/+18 |
| | |||||
* | Fix namespace in phpdoc. | Jaime Perez Crespo | 2015-05-27 | 1 | -1/+1 |
| | |||||
* | Fix typos. | Jaime Perez Crespo | 2015-05-27 | 1 | -2/+2 |
| | |||||
* | Add tests for most functions in SimpleSAML_Configuration. | Olav Morken | 2015-05-27 | 1 | -0/+525 |
| | | | | | Add tests for most of the data retrieval functions. No tests for the metadata functions present though. | ||||
* | Simplify phpunit test structure. | Olav Morken | 2015-05-26 | 4 | -0/+581 |
* One test suite for all tests. * One file per class that is tested. These changes should make it easier to add new tests. |