summaryrefslogtreecommitdiffstats
path: root/lib/SimpleSAML
Commit message (Collapse)AuthorAgeFilesLines
...
* | Bugfix: when using PHP sessions, if there's already a session, session_id() ↵Jaime Perez Crespo2016-04-071-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 Crespo2016-04-055-85/+119
| | | | | | | | be an interface instead.
* | Fix a few outdated comments.Jaime Perez Crespo2016-04-042-3/+3
| |
* | Migrate all the logging handlers to namespaces. Make SimpleSAML\Logger a bit ↵Jaime Perez Crespo2016-04-016-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 Crespo2016-03-311-1/+1
| |
* | Fix build. If we are logging to STDERR, we don't have to write to the ↵Jaime Perez Crespo2016-03-312-3/+4
| | | | | | | | filesystem anyway, so why checking?
* | If we are invoked from the command line, log the messages to standard error, ↵Jaime Perez Crespo2016-03-311-8/+12
| | | | | | | | instead of ignoring them.
* | Since we allow now defering log messages while we are initializing logging, ↵Jaime Perez Crespo2016-03-311-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 Crespo2016-03-311-2/+4
| | | | | | | | SimpleSAML\Logger::createLoggingHandler().
* | Add a new logger class that logs all messages to standard error.Jaime Perez Crespo2016-03-311-0/+24
| |
* | Reformat SimpleSAML_Logger_LoggingHandlerFile.Jaime Perez Crespo2016-03-311-12/+11
| |
* | Make SimpleSAML_Logger_LoggingHandlerFile::$logFile protected instead of ↵Jaime Perez Crespo2016-03-311-1/+8
| | | | | | | | private.
* | It doesn't make any sense to use sessions while invoked from the command ↵Jaime Perez Crespo2016-03-311-0/+7
| | | | | | | | line. This resolves #353.
* | Move SimpleSAML_Metadata_MetaDataStorageHandlerMDX to ↵Jaime Perez Crespo2016-03-292-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 Crespo2016-03-091-4/+5
| |
* | Update the classes in lib/SimpleSAML/ too.Jaime Perez Crespo2016-03-0927-129/+129
| |
* | Bugfix: do not set the timezone as initialized if it wasn't!Jaime Perez Crespo2016-03-041-5/+11
| |
* | No need to disable the error handler momentarily when guessing the timezone ↵Jaime Perez Crespo2016-03-041-10/+4
| | | | | | | | from the OS. Mask errors instead.
* | Complete the coverage for SimpleSAML\Utils\Time::parseDuration().Jaime Perez Crespo2016-03-041-1/+2
| |
* | Minor formatting issues.Jaime Perez Crespo2016-03-033-15/+27
| |
* | Some more fixes for the new SimpleSAML\Module and SimpleSAML\Logger.Jaime Perez Crespo2016-03-032-9/+11
| |
* | Initial test for SimpleSAML\Utils\Time.Jaime Perez Crespo2016-03-031-2/+3
| |
* | Fix a couple formatting issues in SimpleSAML\Utils\HTTP. Start using ↵Jaime Perez Crespo2016-03-031-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 Crespo2016-03-031-1/+2
| | | | | | | | reference to a function.
* | Bugfix: there's a couple of places in SimpleSAML\Utils\HTTP where we should ↵Jaime Perez Crespo2016-03-031-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 Crespo2016-03-035-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 337Andrés Blanco2016-03-025-16/+22
| |
* | Bugfix.Jaime Perez Crespo2016-03-011-3/+2
| |
* | Move the SimpleSAML_Logger class to SimpleSAML\Logger.Jaime Perez Crespo2016-02-262-13/+15
| |
* | Take #2. Use the recently migrated SimpleSAML_Logger::maskErrors() and ↵Jaime Perez Crespo2016-02-261-24/+6
| | | | | | | | popErrorMask() methods to simplify code un SimpleSAML\Utils\Config\Metadata.
* | Move the error-reporting logic in SimpleSAML_Utilities to the ↵Jaime Perez Crespo2016-02-262-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 authorityPatrick Radtke2016-02-251-4/+5
| |
* | RegistrationInfo can be inherited from EntitiesDescriptorPatrick Radtke2016-02-241-10/+36
|/
* Expose RegistrationInfo in parsed metadataPatrick Radtke2016-02-231-0/+15
| | | | | - Add test case - Fix .gitignore since it ignored all metadata folders
* Typo.Jaime Perez Crespo2016-02-221-1/+1
|
* Migrate the SimpleSAML_Module class to namespaces (SimpleSAML\Module) as an ↵Jaime Perez Crespo2016-02-221-17/+19
| | | | example.
* Move the two PSR 0 and PSR 4 module autoloader functions to SimpleSAML_Module.Jaime Perez Crespo2016-02-191-2/+81
|
* Add support for the new module namespace in SimpleSAML_Module::resolveClass().Jaime Perez Crespo2016-02-191-8/+22
|
* Mark the old Auth MemCookie implementation as deprecated.Jaime Perez Crespo2016-02-181-0/+2
|
* Bugfix.Jaime Perez Crespo2016-02-181-1/+1
|
* Minor improvements to SimpleSAML\Database.Jaime Perez Crespo2016-02-171-25/+16
|
* Bugfix. While SimpleSAML\Database::query() returns a PDOStatement, ↵Jaime Perez Crespo2016-02-172-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 Crespo2016-02-161-4/+24
|
* Silence failures we don't care about.Jaime Perez Crespo2016-02-161-1/+1
|
* Avoid the PHP session handler to generate errors when we try to retrieve a ↵Jaime Perez Crespo2016-02-151-0/+17
| | | | session after the headers being sent to the browser.
* Declare missing property in SimpleSAML\Locale\Language.Jaime Perez Crespo2016-02-091-0/+9
|
* Reduce complexity in some of the methods of SimpleSAML\Locale\Language.Jaime Perez Crespo2016-02-091-13/+6
|
* Enhance the documentation for SimpleSAML\Locale\Language. Move all the ↵Jaime Perez Crespo2016-02-091-13/+43
| | | | configuration properties to the constructor, instead of the methods.
* Tests for SimpleSAML\Locale\Language::isLanguageRTL() + Typo.Jaime Perez Crespo2016-02-091-1/+1
|
* Minor fixes.Jaime Perez Crespo2016-02-091-2/+2
|
* Merge pull request #307 from simplesamlphp/template-refactor-rebasedJaime Pérez Crespo2016-02-093-570/+904
|\ | | | | Template refactor rebased
| * Bugfixes.Jaime Perez Crespo2016-02-051-2/+2
| |
| * Restore previously deleted private methods, they are used from the templates.Jaime Perez Crespo2016-02-051-0/+29
| |
| * Restore the rest of the public methods in SimpleSAML_XHTML_Template that ↵Jaime Perez Crespo2016-02-051-53/+138
| | | | | | | | were removed, make them wrappers of the new methods, and mark them as deprecated.
| * Restore SimpleSAML_XHTML_Template::getLanguageCookie() and ↵Jaime Perez Crespo2016-02-051-19/+43
| | | | | | | | setLanguageCookie() temporarily, as wrappers over the new methods in SimpleSAML\Locale\Language.
| * More bugfixes. The SimpleSAML\Locale\Language::$languageParameterName and ↵Jaime Perez Crespo2016-02-052-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 Crespo2016-02-051-4/+13
| |
| * Add a method SimpleSAML_XHTML_Template::getTranslator() to retrieve the ↵Jaime Perez Crespo2016-02-051-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 Crespo2016-02-051-2/+2
| | | | | | | | (and camel caps) getStringNotTranslated().
| * Return lang_merge() to SimpleSAML_XHTML_Template, as it was public, and mark ↵Jaime Perez Crespo2016-02-052-13/+20
| | | | | | | | it as deprecated. Use array_merge_recursive() instead.
| * Bugfix.Jaime Perez Crespo2016-02-051-1/+1
| |
| * Reformat \SimpleSAML\Locale\Translate.Jaime Perez Crespo2016-02-051-101/+128
| |
| * Fix phpdoc for \SimpleSAML\Locale\Translate.Jaime Perez Crespo2016-02-051-58/+65
| |
| * Rename \SimpleSAML\Locale\Translate::getTranslation() to the more ↵Jaime Perez Crespo2016-02-052-7/+7
| | | | | | | | comprehensive \SimpleSAML\Locale\Translate::getPreferredTranslation().
| * Stop using deprecated methods from SimpleSAML_Utilities.Jaime Perez Crespo2016-02-051-2/+4
| |
| * Reformat the new \SimpleSAML\Locale\Language class.Jaime Perez Crespo2016-02-052-57/+67
| |
| * Fix phpdoc in the new SimpleSAML\Locale\Language class.Jaime Perez Crespo2016-02-051-21/+27
| |
| * Reformat SimpleSAML_XHTML_Template and remove unused return statement.Jaime Perez Crespo2016-02-051-28/+39
| |
| * Get rid of unused, private methods in SimpleSAML_XHTML_Template.Jaime Perez Crespo2016-02-051-28/+0
| |
| * Fix phpdoc comments for SimpleSAML_XHTML_Template.Jaime Perez Crespo2016-02-051-16/+21
| |
| * Only used one place, for a translation-less stringHanne Moa2016-01-141-0/+8
| | | | | | | | Candidate for removal/rewrite
| * Fixed comments from previous pull-requestHanne Moa2016-01-143-27/+35
| |
| * Refactor SimpleSAML_XHTML_TemplateHanne Moa2016-01-143-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 Crespo2016-02-031-5/+4
| | | | | | | | all kinds of failures.
* | Merge pull request #325 from randomfire/masterJaime Pérez Crespo2016-02-031-3/+9
|\ \ | | | | | | - Added search.filter to allow for custom LDAP search filters
| * | - Added search.filter to allow for custom LDAP search filtersDavid Yang2016-01-281-3/+9
| | |
* | | Make it possible to pre-load a configuration array into ↵Jaime Perez Crespo2016-02-021-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 Crespo2016-02-021-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 themTim van Dijen2016-01-191-1/+1
| | | | | | Don't gather the proxy.auth setting if we don't use it
* | Update HTTP.phprestena-sw2016-01-151-1/+1
| |
* | Update HTTP.phprestena-sw2016-01-151-1/+6
|/
* Rename the development version from "trunk" to "master".Jaime Perez Crespo2015-12-241-1/+1
|
* Clean one-liner comments.Jaime Perez Crespo2015-11-0626-167/+167
|
* s/simpleSAMLphp/SimpleSAMLphp/gJaime Perez Crespo2015-11-0641-50/+50
| | | | (being respectful with occurences that might change the behaviour, i.e. default database prefixes)
* Reformat and enhance error reports.Jaime Perez Crespo2015-11-031-290/+296
|
* Prevent the SimpleSAML_Logger class from creating loops while trying to get ↵Jaime Perez Crespo2015-10-273-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 Crespo2015-10-264-9/+13
|
* Correct name for memcache prefix config option.Thijs Kinkhorst2015-10-241-1/+1
|
* Update Memcache.php to prevent data-collisionTim van Dijen2015-10-241-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.phpTim van Dijen2015-10-241-48/+50
|
* Merge branch 'saml2-domdocumentfactory' of ↵Jaime Perez Crespo2015-10-216-29/+35
|\ | | | | | | https://github.com/sgomez/simplesamlphp into master
| * XML data is loaded using SAML2_DOMDocumentFactory classSergio Gómez2015-10-116-29/+35
| |
* | Deprecate the 'userid.attribute' option. We should define specific options ↵Jaime Perez Crespo2015-10-211-5/+5
| | | | | | | | for each module using it, in order to avoid confussions.
* | Make SimpleSAMLphp resilient to open redirections by default.Jaime Perez Crespo2015-10-211-6/+2
| |
* | Bugfix: if there's no session, getCookieSessionId() cannot return a session ↵Jaime Perez Crespo2015-10-211-0/+3
| | | | | | | | identifier, therefore there's no session we can return. This resolves #256.
* | Merge branch 'master' of github.com:simplesamlphp/simplesamlphpJaime Perez Crespo2015-10-141-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.phpTim van Dijen2015-10-121-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 Crespo2015-10-141-13/+59
|/ | | | browser. This fixes #260.
* Removed new call before makeException.Matt Schwager2015-09-281-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 Crespo2015-09-241-1/+10
|