feat: implement JWT authentication and scope validation middleware
Some checks failed
🧪✨ Tests Workflow / 🛡️ 🔒 Library Audit (push) Successful in 3m4s
🧪✨ Tests Workflow / 📝 ✨ Code Lint (push) Successful in 2m54s
🧪✨ Tests Workflow / 🧪 ✨ Database Migrations (push) Successful in 3m18s
🧪✨ Tests Workflow / 🛡️ 🔒 License Check (push) Successful in 3m8s
🧪✨ Tests Workflow / 🐙 🔍 Code Sniffer (push) Failing after 3m10s
🧪✨ Tests Workflow / 🧪 ✅ Unit Tests (push) Failing after 1m36s

This commit is contained in:
2025-11-07 10:58:33 -05:00
parent 54ea22c49a
commit d10ad2065c
12 changed files with 430 additions and 10 deletions

View File

@@ -41,5 +41,12 @@ return [
'port' => Env::get('REDIS_PORT', 6379, 'int'),
'database' => Env::get('REDIS_DATABASE', 0, 'int'),
'password' => Env::get('REDIS_PASSWORD'),
],
'jwt' => [
'signing_key' => Env::get('JWT_SIGNING_KEY', 'a_super_secret_key'),
'audience' => Env::get('JWT_AUDIENCE', 'my_audience'),
'issuer' => Env::get('JWT_ISSUER', 'my_issuer'),
'strict_validation' => Env::get('JWT_STRICT_VALIDATION', true, 'bool'),
]
];