3 Commits (f6fc394eb16d72686d92ad40c61082b1f8e5f96e)

Author SHA1 Message Date
veypi cad627c7b5 refactor(init): Move provider and role initialization to Init()
- Move VBaseProvider initialization from init() to Init() function
    - Move role initialization (admin/user) from api/init.go to Init()
    - Remove global VBaseProvider variable reference from tests
    - Use NewAuth factory function instead of direct auth.Factory.New call
4 weeks ago
veypi 3ea5499532 refactor(auth): Migrate to new vigo auth.Auth and Provider pattern
- Rename appAuth to vbaseProvider implementing auth.Provider interface
    - Replace auth.VBaseAuth with cfg.Auth (auth.Auth struct) for middleware
    - Add global cfg.Auth instance with SetProvider injection in init.go
    - Update all API handlers to use cfg.Auth.RequireXxx instead of PermXxx
    - Update tests to use cfg.Auth for permission checks
    - Remove Login/Perm methods from Provider (now in auth.Auth struct)
2 months ago
veypi 56d87ec18a test: Update tests for scoped RBAC and remove org tests
- Remove org-related test cases from edge_case_test.go
    - Remove OrgResp type from main_test.go
    - Update none_auth_test removing org endpoints
    - Add permission grants in OAuth tests for proper access control
    - Fix race condition tests with retry logic for SQLite locking
    - Update resource_perm_test to accept 401 or 403 status codes
    - Add new role_access_test.go for role API permission testing
    - Add new scoped_auth_test.go for scoped permission testing
2 months ago