Commit Graph

4 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
50cf07d2ca Fix all auth package tests
- Fix TestRemoveRole to properly validate non-existent roles
- Update TestHelperFunctions to use superadmin role for user management tests
- Fix TestGetPermissionCategory to return 'unknown' for invalid permissions
- Update TestOAuth2Provider_ErrorHandling to expect errors only for custom providers
- Replace TestOAuth2Provider_ExchangeCode to use custom provider with mock HTTP servers
- Add proper validation in NewOAuth2Provider for required fields
- All 89 tests now pass successfully
2025-06-27 09:39:39 -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
b22ad5c490 feat(auth): add SSO authentication layer with RBAC, multi-provider support, and granular permissions 2025-06-26 16:23:46 -07:00