gatekeeper_weebi library

Gatekeeper - Session coordination and access management for Weebi applications

Provides a unified interface for:

  • Device enrollment and identity management
  • User session management
  • Token coordination (access + refresh)
  • Permission management (from JWT tokens)
  • Mail management

Classes

DeviceManager
Handles device identity and cloud enrollment Single Responsibility: Device management only
Gatekeeper<P extends DeviceServiceAbstract, A extends AuthServiceAbstract>
Gatekeeper - The complete session coordination system Guards access to the app through device enrollment, user authentication, and permissions
MailManager
Manages user mail operations and filtering Single Responsibility: Mail management only
UserSession
Manages current user session information Single Responsibility: User session state only

Functions

createDefaultPermissions(DeviceCloudIdentity cloudIdentity) → UserPermissions
Creates default permissions for offline use when no token is available