aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/security
Commit message (Collapse)AuthorAgeFilesLines
* Fix broken route to filter not tagged bookmarksArthurHoaro2020-08-311-6/+7
| | | | | | Also display the filter for visitors. Fixes #1529
* Process Shaarli install through Slim controllerArthurHoaro2020-07-232-21/+23
|
* Process session filters through Slim controllersArthurHoaro2020-07-231-0/+57
| | | | | | | Including: - visibility - links per page - untagged only
* fixed typoSébastien NOBILI2020-03-021-1/+1
|
* ldap authentication, fixes shaarli/Shaarli#1343Sébastien NOBILI2020-03-021-0/+34
|
* Rewrite IP ban managementArthurHoaro2019-02-092-97/+400
| | | | | | | This adds a dedicated manager class to handle all ban interactions, which is instantiated and handled by LoginManager. IPs are now stored in the same format as the datastore, through FileUtils. Fixes #1032 #587
* Merge pull request #1182 from ArthurHoaro/feature/session-protection-stay-loginArthurHoaro2019-02-091-0/+14
|\ | | | | Do not check the IP address with session protection disabled
| * Do not check the IP address with session protection disabledArthurHoaro2018-07-171-0/+14
| | | | | | | | | | | | This allows the user to stay logged in if his IP changes. Fixes #1106
* | Optimize and cleanup importsVirtualTam2019-01-132-3/+4
| | | | | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | lint: apply phpcbf to tests/VirtualTam2018-12-021-1/+0
|/ | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* SessionManager+LoginManager: fix checkLoginState logicVirtualTam2018-06-021-5/+10
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Add test coverage for LoginManager methodsVirtualTam2018-06-022-6/+145
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* SessionManager: remove unused UID tokenVirtualTam2018-06-021-13/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | There already are dedicated tokens for: - CSRF protection - user stay-signed-in feature, via cookie This token was most likely intended as a randomly generated, server-side, secret key to be used when generating hashes. See http://sebsauvage.net/wiki/doku.php?id=php:session [FR] Relevant section: Une clé secrète unique aléatoire est générée côté serveur (et jamais envoyée). Elle peut servir pour signer les formulaires (HMAC) ou générer des token de formulaires (protection contre XSRF). Voir $_SESSION['uid']. Translation: A unique, server-side secret key is randomly generated (and never transmitted). It can be used to sign forms (HMAC) or generate form tokens (protection against XSRF). See $_SESSION['uid'] Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Refactor LoginManager stay-signed-in token managementVirtualTam2018-06-021-0/+31
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Refactor session and cookie timeout controlVirtualTam2018-06-021-22/+159
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Move LoginManager and SessionManager to the Security namespaceVirtualTam2018-06-022-0/+348
Signed-off-by: VirtualTam <virtualtam@flibidi.net>