thunderbird_accounts.authentication.permissions

Classes

CanCreateTestAllowListEntries()

Allows access to authenticated users with the create_test_entry_via_api permission

IsValidPaddleWebhook()

class thunderbird_accounts.authentication.permissions.IsValidPaddleWebhook[source]

Bases: BaseAuthentication

authenticate(request)[source]

Authenticate the request and return a two-tuple of (user, token).

class thunderbird_accounts.authentication.permissions.CanCreateTestAllowListEntries[source]

Bases: BasePermission

Allows access to authenticated users with the create_test_entry_via_api permission

has_permission(request, view)[source]

Return True if permission is granted, False otherwise.