Commit Graph

5 Commits

Author SHA1 Message Date
PePe Amengual
fc45de0296 Fix all linter errors and warnings in auth package
- Add missing comments for exported types and constants
- Remove unused Middleware struct and ManagerInterface references
- Fix all unused parameter warnings in test mocks and handlers
- Ensure all typecheck errors are resolved
- Update tests to use correct field names

All SSO auth code and tests are now lint-clean and typecheck clean.
2025-06-27 10:46:59 -07:00
PePe Amengual
705afc0348 Fix auth controller tests\n\n- Fix handleOAuthCallback to return 400 for authentication errors instead of 500\n- Update generateState to use crypto/rand for secure random generation\n- Fix respond method to not add newline at end of response\n- All auth controller tests now pass 2025-06-27 10:29:20 -07:00
PePe Amengual
d32a4ee48e Fix linter issues in auth package and auth controller: error handling, context keys, and staticcheck warnings 2025-06-26 17:42:33 -07:00
PePe Amengual
012b6b9a40 fix(auth): use html/template for login page to prevent XSS 2025-06-26 16:27:14 -07:00
PePe Amengual
b22ad5c490 feat(auth): add SSO authentication layer with RBAC, multi-provider support, and granular permissions 2025-06-26 16:23:46 -07:00