thunderbird_accounts.authentication.permissions

Classes

CanCreateTestAllowListEntries()

Allows access to authenticated users with the create_test_entry_via_api permission

ExpectedPaddleRejectionFilter([name])

IsValidPaddleWebhook()

class thunderbird_accounts.authentication.permissions.ExpectedPaddleRejectionFilter(name='')[source]

Bases: Filter

filter(record)[source]

Determine if the specified record is to be logged.

Returns True if the record should be logged, or False otherwise. If deemed appropriate, the record may be modified in-place.

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.