Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Bugfix: when using PHP sessions, if there's already a session, session_id() ↵ | Jaime Perez Crespo | 2016-04-07 | 1 | -26/+27 | |
| | | | | | | | | will return the identifier of that session, not our session. In that case, we need to make sure it is our session so that we don't hijack the one of the application. | |||||
* | | Migrate the logout handlers to namespaces, change the base abstract class to ↵ | Jaime Perez Crespo | 2016-04-05 | 5 | -85/+119 | |
| | | | | | | | | be an interface instead. | |||||
* | | Fix a few outdated comments. | Jaime Perez Crespo | 2016-04-04 | 2 | -3/+3 | |
| | | ||||||
* | | Migrate all the logging handlers to namespaces. Make SimpleSAML\Logger a bit ↵ | Jaime Perez Crespo | 2016-04-01 | 6 | -77/+109 | |
| | | | | | | | | more intelligent so that it allows using custom logging handlers. Now you just need to implement SimpleSAML\Logger\LogginghandlerInterface in a class, and set the 'logging.handler' option in the configuration file to a string with the full name of your class. | |||||
* | | Fix loose comparison. | Jaime Perez Crespo | 2016-03-31 | 1 | -1/+1 | |
| | | ||||||
* | | Fix build. If we are logging to STDERR, we don't have to write to the ↵ | Jaime Perez Crespo | 2016-03-31 | 2 | -3/+4 | |
| | | | | | | | | filesystem anyway, so why checking? | |||||
* | | If we are invoked from the command line, log the messages to standard error, ↵ | Jaime Perez Crespo | 2016-03-31 | 1 | -8/+12 | |
| | | | | | | | | instead of ignoring them. | |||||
* | | Since we allow now defering log messages while we are initializing logging, ↵ | Jaime Perez Crespo | 2016-03-31 | 1 | -8/+0 | |
| | | | | | | | | we no longer need to dump them to the error log. | |||||
* | | Allow passing as a parameter the logging handler to use in ↵ | Jaime Perez Crespo | 2016-03-31 | 1 | -2/+4 | |
| | | | | | | | | SimpleSAML\Logger::createLoggingHandler(). | |||||
* | | Add a new logger class that logs all messages to standard error. | Jaime Perez Crespo | 2016-03-31 | 1 | -0/+24 | |
| | | ||||||
* | | Reformat SimpleSAML_Logger_LoggingHandlerFile. | Jaime Perez Crespo | 2016-03-31 | 1 | -12/+11 | |
| | | ||||||
* | | Make SimpleSAML_Logger_LoggingHandlerFile::$logFile protected instead of ↵ | Jaime Perez Crespo | 2016-03-31 | 1 | -1/+8 | |
| | | | | | | | | private. | |||||
* | | It doesn't make any sense to use sessions while invoked from the command ↵ | Jaime Perez Crespo | 2016-03-31 | 1 | -0/+7 | |
| | | | | | | | | line. This resolves #353. | |||||
* | | Move SimpleSAML_Metadata_MetaDataStorageHandlerMDX to ↵ | Jaime Perez Crespo | 2016-03-29 | 2 | -37/+41 | |
| | | | | | | | | SimpleSAML\Metadata\Sources\MDQ, and stop referring to it as MDX elsewhere. | |||||
* | | Add support for interfaces in our temporary autoloaders, not only for classes. | Jaime Perez Crespo | 2016-03-09 | 1 | -4/+5 | |
| | | ||||||
* | | Update the classes in lib/SimpleSAML/ too. | Jaime Perez Crespo | 2016-03-09 | 27 | -129/+129 | |
| | | ||||||
* | | Bugfix: do not set the timezone as initialized if it wasn't! | Jaime Perez Crespo | 2016-03-04 | 1 | -5/+11 | |
| | | ||||||
* | | No need to disable the error handler momentarily when guessing the timezone ↵ | Jaime Perez Crespo | 2016-03-04 | 1 | -10/+4 | |
| | | | | | | | | from the OS. Mask errors instead. | |||||
* | | Complete the coverage for SimpleSAML\Utils\Time::parseDuration(). | Jaime Perez Crespo | 2016-03-04 | 1 | -1/+2 | |
| | | ||||||
* | | Minor formatting issues. | Jaime Perez Crespo | 2016-03-03 | 3 | -15/+27 | |
| | | ||||||
* | | Some more fixes for the new SimpleSAML\Module and SimpleSAML\Logger. | Jaime Perez Crespo | 2016-03-03 | 2 | -9/+11 | |
| | | ||||||
* | | Initial test for SimpleSAML\Utils\Time. | Jaime Perez Crespo | 2016-03-03 | 1 | -2/+3 | |
| | | ||||||
* | | Fix a couple formatting issues in SimpleSAML\Utils\HTTP. Start using ↵ | Jaime Perez Crespo | 2016-03-03 | 1 | -15/+31 | |
| | | | | | | | | SimpleSAML\Module and SimpleSAML\Logger in there. | |||||
* | | Fix build for older PHP versions that don't allow passing return values as a ↵ | Jaime Perez Crespo | 2016-03-03 | 1 | -1/+2 | |
| | | | | | | | | reference to a function. | |||||
* | | Bugfix: there's a couple of places in SimpleSAML\Utils\HTTP where we should ↵ | Jaime Perez Crespo | 2016-03-03 | 1 | -2/+2 | |
| | | | | | | | | use the host AND port if the latter is not the default one, but we are only using the host. These are the case for evaluating the 'trusted.url.domains' configuration options (we should allow the host and port we are reachable in, but not other ports in the same host) and the method that returns the host with path, which should include the port if that's not standard (the documentation of the method already says so). | |||||
* | | Rename Utils\HTTP::getSelfHostWithoutPort() to ↵ | Jaime Perez Crespo | 2016-03-03 | 5 | -19/+22 | |
| | | | | | | | | 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 | 5 | -16/+22 | |
| | | ||||||
* | | Bugfix. | Jaime Perez Crespo | 2016-03-01 | 1 | -3/+2 | |
| | | ||||||
* | | Move the SimpleSAML_Logger class to SimpleSAML\Logger. | Jaime Perez Crespo | 2016-02-26 | 2 | -13/+15 | |
| | | ||||||
* | | Take #2. Use the recently migrated SimpleSAML_Logger::maskErrors() and ↵ | Jaime Perez Crespo | 2016-02-26 | 1 | -24/+6 | |
| | | | | | | | | popErrorMask() methods to simplify code un SimpleSAML\Utils\Config\Metadata. | |||||
* | | Move the error-reporting logic in SimpleSAML_Utilities to the ↵ | Jaime Perez Crespo | 2016-02-26 | 2 | -29/+68 | |
| | | | | | | | | SimpleSAML_Logger class, and add a new method there to evaluate whether an error would be masked or not according to its level. | |||||
* | | Only warn about RegistraionInfo overrides that change the authority | Patrick Radtke | 2016-02-25 | 1 | -4/+5 | |
| | | ||||||
* | | RegistrationInfo can be inherited from EntitiesDescriptor | Patrick Radtke | 2016-02-24 | 1 | -10/+36 | |
|/ | ||||||
* | Expose RegistrationInfo in parsed metadata | Patrick Radtke | 2016-02-23 | 1 | -0/+15 | |
| | | | | | - Add test case - Fix .gitignore since it ignored all metadata folders | |||||
* | Typo. | Jaime Perez Crespo | 2016-02-22 | 1 | -1/+1 | |
| | ||||||
* | Migrate the SimpleSAML_Module class to namespaces (SimpleSAML\Module) as an ↵ | Jaime Perez Crespo | 2016-02-22 | 1 | -17/+19 | |
| | | | | example. | |||||
* | Move the two PSR 0 and PSR 4 module autoloader functions to SimpleSAML_Module. | Jaime Perez Crespo | 2016-02-19 | 1 | -2/+81 | |
| | ||||||
* | Add support for the new module namespace in SimpleSAML_Module::resolveClass(). | Jaime Perez Crespo | 2016-02-19 | 1 | -8/+22 | |
| | ||||||
* | Mark the old Auth MemCookie implementation as deprecated. | Jaime Perez Crespo | 2016-02-18 | 1 | -0/+2 | |
| | ||||||
* | Bugfix. | Jaime Perez Crespo | 2016-02-18 | 1 | -1/+1 | |
| | ||||||
* | Minor improvements to SimpleSAML\Database. | Jaime Perez Crespo | 2016-02-17 | 1 | -25/+16 | |
| | ||||||
* | Bugfix. While SimpleSAML\Database::query() returns a PDOStatement, ↵ | Jaime Perez Crespo | 2016-02-17 | 2 | -6/+20 | |
| | | | | 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(). | |||||
* | Desist on the optimization introduced in d32eb4a, it doesn't work. | Jaime Perez Crespo | 2016-02-16 | 1 | -4/+24 | |
| | ||||||
* | Silence failures we don't care about. | Jaime Perez Crespo | 2016-02-16 | 1 | -1/+1 | |
| | ||||||
* | Avoid the PHP session handler to generate errors when we try to retrieve a ↵ | Jaime Perez Crespo | 2016-02-15 | 1 | -0/+17 | |
| | | | | session after the headers being sent to the browser. | |||||
* | Declare missing property in SimpleSAML\Locale\Language. | Jaime Perez Crespo | 2016-02-09 | 1 | -0/+9 | |
| | ||||||
* | Reduce complexity in some of the methods of SimpleSAML\Locale\Language. | Jaime Perez Crespo | 2016-02-09 | 1 | -13/+6 | |
| | ||||||
* | Enhance the documentation for SimpleSAML\Locale\Language. Move all the ↵ | Jaime Perez Crespo | 2016-02-09 | 1 | -13/+43 | |
| | | | | configuration properties to the constructor, instead of the methods. | |||||
* | Tests for SimpleSAML\Locale\Language::isLanguageRTL() + Typo. | Jaime Perez Crespo | 2016-02-09 | 1 | -1/+1 | |
| | ||||||
* | Minor fixes. | Jaime Perez Crespo | 2016-02-09 | 1 | -2/+2 | |
| | ||||||
* | Merge pull request #307 from simplesamlphp/template-refactor-rebased | Jaime Pérez Crespo | 2016-02-09 | 3 | -570/+904 | |
|\ | | | | | Template refactor rebased | |||||
| * | Bugfixes. | Jaime Perez Crespo | 2016-02-05 | 1 | -2/+2 | |
| | | ||||||
| * | Restore previously deleted private methods, they are used from the templates. | Jaime Perez Crespo | 2016-02-05 | 1 | -0/+29 | |
| | | ||||||
| * | Restore the rest of the public methods in SimpleSAML_XHTML_Template that ↵ | Jaime Perez Crespo | 2016-02-05 | 1 | -53/+138 | |
| | | | | | | | | were removed, make them wrappers of the new methods, and mark them as deprecated. | |||||
| * | Restore SimpleSAML_XHTML_Template::getLanguageCookie() and ↵ | Jaime Perez Crespo | 2016-02-05 | 1 | -19/+43 | |
| | | | | | | | | setLanguageCookie() temporarily, as wrappers over the new methods in SimpleSAML\Locale\Language. | |||||
| * | More bugfixes. The SimpleSAML\Locale\Language::$languageParameterName and ↵ | Jaime Perez Crespo | 2016-02-05 | 2 | -1/+23 | |
| | | | | | | | | SimpleSAML\Locale\Language::$language properties should be private, and therefore not accessed from the outside of their respective classes. Add getters instead. | |||||
| * | Minor fixes. | Jaime Perez Crespo | 2016-02-05 | 1 | -4/+13 | |
| | | ||||||
| * | Add a method SimpleSAML_XHTML_Template::getTranslator() to retrieve the ↵ | Jaime Perez Crespo | 2016-02-05 | 1 | -0/+18 | |
| | | | | | | | | SimpleSAML\Locale\Translate instance local to the template, and use it to fix a bug in a template of the consent module. | |||||
| * | Rename \SimpleSAML\Locale\Translate::t_not_translated() to the more concise ↵ | Jaime Perez Crespo | 2016-02-05 | 1 | -2/+2 | |
| | | | | | | | | (and camel caps) getStringNotTranslated(). | |||||
| * | Return lang_merge() to SimpleSAML_XHTML_Template, as it was public, and mark ↵ | Jaime Perez Crespo | 2016-02-05 | 2 | -13/+20 | |
| | | | | | | | | it as deprecated. Use array_merge_recursive() instead. | |||||
| * | Bugfix. | Jaime Perez Crespo | 2016-02-05 | 1 | -1/+1 | |
| | | ||||||
| * | Reformat \SimpleSAML\Locale\Translate. | Jaime Perez Crespo | 2016-02-05 | 1 | -101/+128 | |
| | | ||||||
| * | Fix phpdoc for \SimpleSAML\Locale\Translate. | Jaime Perez Crespo | 2016-02-05 | 1 | -58/+65 | |
| | | ||||||
| * | Rename \SimpleSAML\Locale\Translate::getTranslation() to the more ↵ | Jaime Perez Crespo | 2016-02-05 | 2 | -7/+7 | |
| | | | | | | | | comprehensive \SimpleSAML\Locale\Translate::getPreferredTranslation(). | |||||
| * | Stop using deprecated methods from SimpleSAML_Utilities. | Jaime Perez Crespo | 2016-02-05 | 1 | -2/+4 | |
| | | ||||||
| * | Reformat the new \SimpleSAML\Locale\Language class. | Jaime Perez Crespo | 2016-02-05 | 2 | -57/+67 | |
| | | ||||||
| * | Fix phpdoc in the new SimpleSAML\Locale\Language class. | Jaime Perez Crespo | 2016-02-05 | 1 | -21/+27 | |
| | | ||||||
| * | Reformat SimpleSAML_XHTML_Template and remove unused return statement. | Jaime Perez Crespo | 2016-02-05 | 1 | -28/+39 | |
| | | ||||||
| * | Get rid of unused, private methods in SimpleSAML_XHTML_Template. | Jaime Perez Crespo | 2016-02-05 | 1 | -28/+0 | |
| | | ||||||
| * | Fix phpdoc comments for SimpleSAML_XHTML_Template. | Jaime Perez Crespo | 2016-02-05 | 1 | -16/+21 | |
| | | ||||||
| * | Only used one place, for a translation-less string | Hanne Moa | 2016-01-14 | 1 | -0/+8 | |
| | | | | | | | | Candidate for removal/rewrite | |||||
| * | Fixed comments from previous pull-request | Hanne Moa | 2016-01-14 | 3 | -27/+35 | |
| | | ||||||
| * | Refactor SimpleSAML_XHTML_Template | Hanne Moa | 2016-01-14 | 3 | -558/+642 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A template now has a translator-object, SimpleSAML_Locale_Translate. This handles the existing translation system. The translator has a language-object, SimpleSAML_Locale_Language. This handles discovery and switching of locale. SimpleSAML_XHTML_Template has several methods that are wrapped translator-methods: t() isLanguageRTL() getLanguageList() getTranslation() This way it isn't necessary to change much of the existing system. | |||||
* | | Make SimpleSAML\Utils\Config\Metadata::isHiddenFromDiscovery() resilient to ↵ | Jaime Perez Crespo | 2016-02-03 | 1 | -5/+4 | |
| | | | | | | | | all kinds of failures. | |||||
* | | Merge pull request #325 from randomfire/master | Jaime Pérez Crespo | 2016-02-03 | 1 | -3/+9 | |
|\ \ | | | | | | | - Added search.filter to allow for custom LDAP search filters | |||||
| * | | - Added search.filter to allow for custom LDAP search filters | David Yang | 2016-01-28 | 1 | -3/+9 | |
| | | | ||||||
* | | | Make it possible to pre-load a configuration array into ↵ | Jaime Perez Crespo | 2016-02-02 | 1 | -6/+15 | |
| | | | | | | | | | | | | SimpleSAML_Configuration for subsequent calls to getInstance() to use it. This opens up for unit-testing code that calls SimpleSAML_Configuration::getInstance(). | |||||
* | | | Bugfix: if an optional configuration is missing, we shouldn't register it to ↵ | Jaime Perez Crespo | 2016-02-02 | 1 | -2/+4 | |
|/ / | | | | | | | reuse it later (i.e. loading a config file as optional first and as mandatory later would make the second call to work -while it shouldn't-, since an empty config was loaded during the first call). | |||||
* | | Minor optimalization - Don't gather settings if we don't use them | Tim van Dijen | 2016-01-19 | 1 | -1/+1 | |
| | | | | | | Don't gather the proxy.auth setting if we don't use it | |||||
* | | Update HTTP.php | restena-sw | 2016-01-15 | 1 | -1/+1 | |
| | | ||||||
* | | Update HTTP.php | restena-sw | 2016-01-15 | 1 | -1/+6 | |
|/ | ||||||
* | Rename the development version from "trunk" to "master". | Jaime Perez Crespo | 2015-12-24 | 1 | -1/+1 | |
| | ||||||
* | Clean one-liner comments. | Jaime Perez Crespo | 2015-11-06 | 26 | -167/+167 | |
| | ||||||
* | s/simpleSAMLphp/SimpleSAMLphp/g | Jaime Perez Crespo | 2015-11-06 | 41 | -50/+50 | |
| | | | | (being respectful with occurences that might change the behaviour, i.e. default database prefixes) | |||||
* | Reformat and enhance error reports. | Jaime Perez Crespo | 2015-11-03 | 1 | -290/+296 | |
| | ||||||
* | Prevent the SimpleSAML_Logger class from creating loops while trying to get ↵ | Jaime Perez Crespo | 2015-10-27 | 3 | -69/+172 | |
| | | | | the track ID from the session. It must now be set manually by calling SimpleSAML_Logger::setTrackID(). Also allow SimpleSAML_Memcache to differentiate between a key not found in memcache and a request to memcache failed. If all servers are down, an exception is thrown and the user informed about the internal error. This hopefully resolves #264. | |||||
* | Avoid session cookies being set twice, hopefully for good. | Jaime Perez Crespo | 2015-10-26 | 4 | -9/+13 | |
| | ||||||
* | Correct name for memcache prefix config option. | Thijs Kinkhorst | 2015-10-24 | 1 | -1/+1 | |
| | ||||||
* | Update Memcache.php to prevent data-collision | Tim van Dijen | 2015-10-24 | 1 | -3/+16 | |
| | | | | | | Prevent data-collision when hosting several SSP-instances on one machine, when more than one is using memcache. Introduces new config setting 'memcache_store.prefix'. | |||||
* | PSR-2 reformatting of Memcache.php | Tim van Dijen | 2015-10-24 | 1 | -48/+50 | |
| | ||||||
* | Merge branch 'saml2-domdocumentfactory' of ↵ | Jaime Perez Crespo | 2015-10-21 | 6 | -29/+35 | |
|\ | | | | | | | https://github.com/sgomez/simplesamlphp into master | |||||
| * | XML data is loaded using SAML2_DOMDocumentFactory class | Sergio Gómez | 2015-10-11 | 6 | -29/+35 | |
| | | ||||||
* | | Deprecate the 'userid.attribute' option. We should define specific options ↵ | Jaime Perez Crespo | 2015-10-21 | 1 | -5/+5 | |
| | | | | | | | | for each module using it, in order to avoid confussions. | |||||
* | | Make SimpleSAMLphp resilient to open redirections by default. | Jaime Perez Crespo | 2015-10-21 | 1 | -6/+2 | |
| | | ||||||
* | | Bugfix: if there's no session, getCookieSessionId() cannot return a session ↵ | Jaime Perez Crespo | 2015-10-21 | 1 | -0/+3 | |
| | | | | | | | | identifier, therefore there's no session we can return. This resolves #256. | |||||
* | | Merge branch 'master' of github.com:simplesamlphp/simplesamlphp | Jaime Perez Crespo | 2015-10-14 | 1 | -662/+692 | |
|\ \ | | | | | | | | | | | | | | | | | | | # By Tim van Dijen # Via Thijs Kinkhorst (1) and Tim van Dijen (1) * 'master' of github.com:simplesamlphp/simplesamlphp: Update LDAP.php | |||||
| * | | Update LDAP.php | Tim van Dijen | 2015-10-12 | 1 | -662/+692 | |
| |/ | | | | | Fixed to follow PSR-2 coding guidelines, proper indentation and a minor fix in equality operand (== vs ===) | |||||
* | | Make sure sessions are saved always before any output is sent to the ↵ | Jaime Perez Crespo | 2015-10-14 | 1 | -13/+59 | |
|/ | | | | browser. This fixes #260. | |||||
* | Removed new call before makeException. | Matt Schwager | 2015-09-28 | 1 | -1/+1 | |
| | | | | | The `makeException` function returns an instantiated object, so the caller shouldn't also call `new`. | |||||
* | Add support for UNIX sockets in memcache. | Jaime Perez Crespo | 2015-09-24 | 1 | -1/+10 | |
| |