5d94572569
Vorbereitung für pod-unabhängige Sessions (k8s-Ziel). Ändert am Live-System NICHTS: AUTH_BACKEND='session' bleibt Default, die neuen Libs sind noch nirgends verdrahtet. - composer eingeführt: firebase/php-jwt ^6.11 + predis/predis ^2.4 (pure PHP, keine Redis-Extension nötig → läuft auf XAMPP wie im Prod-Image). vendor/ committed (kein Composer auf dem Server). - Jwt.php: HS256-Access-Token (issue/verify), decode() IMMER mit explizitem Algorithmus (mitigiert Algorithmus-Confusion). 8/8 Tests grün. - SessionStore.php: predis-gestützter Session/Refresh-Store (sess:<sid>, Sliding-TTL, revoke=DEL) — die widerrufbare Session hinter dem kurzen JWT. - app.php: vendor/autoload (guarded), Konstanten AUTH_BACKEND (Default session), REDIS_URL, JWT_TTL, JWT_REFRESH_TTL. JWT_SECRET bewusst ohne Default. - docker-compose.dev.yml: Redis (+ redis-commander UI) für lokale Dev-Parität. - .env.example um Auth-Block ergänzt. Nächste Phasen: $_SESSION-Zugriffe (293) durch Session:: kanalisieren → Backend-Umschalter in Session.php → doppelgleisiger Cutover → Reporting auf student_id-FK ziehen. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
53 lines
1.3 KiB
JSON
53 lines
1.3 KiB
JSON
{
|
|
"name": "predis/predis",
|
|
"type": "library",
|
|
"description": "A flexible and feature-complete Redis/Valkey client for PHP.",
|
|
"keywords": ["nosql", "redis", "predis"],
|
|
"homepage": "http://github.com/predis/predis",
|
|
"license": "MIT",
|
|
"support": {
|
|
"issues": "https://github.com/predis/predis/issues"
|
|
},
|
|
"authors": [
|
|
{
|
|
"name": "Till Krüss",
|
|
"homepage": "https://till.im",
|
|
"role": "Maintainer"
|
|
}
|
|
],
|
|
"funding": [
|
|
{
|
|
"type": "github",
|
|
"url": "https://github.com/sponsors/tillkruss"
|
|
}
|
|
],
|
|
"require": {
|
|
"php": "^7.2 || ^8.0"
|
|
},
|
|
"require-dev": {
|
|
"friendsofphp/php-cs-fixer": "^3.3",
|
|
"phpstan/phpstan": "^1.9",
|
|
"phpunit/phpunit": "^8.0 || ^9.4",
|
|
"phpunit/phpcov": "^6.0 || ^8.0"
|
|
},
|
|
"suggest": {
|
|
"ext-relay": "Faster connection with in-memory caching (>=0.6.2)"
|
|
},
|
|
"scripts": {
|
|
"phpstan": "phpstan analyse",
|
|
"style": "php-cs-fixer fix --diff --dry-run",
|
|
"style:fix": "php-cs-fixer fix"
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"Predis\\": "src/"
|
|
}
|
|
},
|
|
"config": {
|
|
"sort-packages": true,
|
|
"preferred-install": "dist"
|
|
},
|
|
"minimum-stability": "dev",
|
|
"prefer-stable": true
|
|
}
|