backend.globaleaks.tests.handlers.test_authentication

Module Contents

Classes

TestAuthentication
TestReceiptAuth
TestSessionHandler
TestTokenAuth
class backend.globaleaks.tests.handlers.test_authentication.TestAuthentication[source]

Bases: globaleaks.tests.helpers.TestHandlerWithPopulatedDB

_handler[source]
test_successful_login(self)[source]
test_successful_multitenant_login_switch(self)[source]
test_accept_login_in_https(self)[source]
test_deny_login_in_https(self)[source]
test_invalid_login_wrong_password(self)[source]
test_failed_login_counter(self)[source]
test_single_session_per_user(self)[source]
test_session_is_revoked(self)[source]
test_login_reject_on_ip_filtering(self)[source]
test_login_success_on_ip_filtering(self)[source]
class backend.globaleaks.tests.handlers.test_authentication.TestReceiptAuth[source]

Bases: globaleaks.tests.helpers.TestHandlerWithPopulatedDB

_handler[source]
test_invalid_whistleblower_login(self)[source]
test_successful_whistleblower_login(self)[source]
test_accept_whistleblower_login_in_https(self)[source]
test_deny_whistleblower_login_in_https(self)[source]
test_single_session_per_whistleblower(self)[source]

Asserts that the first_id is dropped from Sessions and requests using that session id are rejected

class backend.globaleaks.tests.handlers.test_authentication.TestSessionHandler[source]

Bases: globaleaks.tests.helpers.TestHandlerWithPopulatedDB

test_successful_admin_logout(self)[source]
test_successful_whistleblower_logout(self)[source]
class backend.globaleaks.tests.handlers.test_authentication.TestTokenAuth[source]

Bases: globaleaks.tests.helpers.TestHandlerWithPopulatedDB

_handler[source]
setUp(self)[source]
test_successful_login(self)[source]