Add UserInfo endpoint and enhance client management
Some checks failed
🧪✨ Tests Workflow / 🛡️ 🔒 License Check (push) Successful in 5m21s
🧪✨ Tests Workflow / 🛡️ 🔒 Library Audit (push) Successful in 5m43s
🧪✨ Tests Workflow / 📝 ✨ Code Lint (push) Successful in 5m33s
🧪✨ Tests Workflow / 🐙 🔍 Code Sniffer (push) Successful in 5m28s
🧪✨ Tests Workflow / 🧪 ✨ Database Migrations (push) Successful in 5m52s
🧪✨ Tests Workflow / 🧪 ✅ Unit Tests (push) Failing after 3m10s

- Introduced a new UserInfo controller to handle user information retrieval based on JWT authentication and scopes.
- Added a publicKey method in the Client model to convert private keys to public RSA PEM keys.
- Updated the JwtMiddleware to validate tokens against client IDs and improved error handling.
- Modified the CreateUserHandler to save the user's password directly instead of hashing it.
- Adjusted the .env file to include a new APP_URL variable.
This commit is contained in:
2026-02-11 21:29:18 -05:00
parent 75757f1403
commit f0e191b2cb
8 changed files with 105 additions and 184 deletions

View File

@@ -1,3 +1,4 @@
APP_URL: https://localhost
JWT_ISSUER: https://auth.siteworxpro.com/application/o/postman/
JWT_AUDIENCE: 1RWyqJFlyA4hmsDzq6kSxs0LXvk7UgEAfgmBCpQ9
JWT_SIGNING_KEY: https://auth.siteworxpro.com/application/o/postman/.well-known/openid-configuration