Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str Assign AttributeStore NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Str Str Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str keyword Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str ListLoad Dict Str Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Return Dict Str Str Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str Dict Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Return Dict Str Str Str Str Str Str Str Str Str Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Dict Str Str Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str BinOpAdd Str SubscriptLoad SubscriptLoad NameLoad Index Str Slice Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Dict Str Str Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Str Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Dict Str Str AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Dict Str Str AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str orelse Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Dict Str Str NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Dict Str Str NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad attr Expr Call NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Dict Str Str NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Dict Str Str Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore TupleLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Dict Str Str NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Dict Str Str NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Dict Str Str Call AttributeLoad NameLoad attr NameLoad BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Str Str NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Str Str NameLoad Call AttributeLoad NameLoad attr NameLoad BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Dict Str Str AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad BinOpSub NameLoad Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Call AttributeLoad NameLoad attr keyword Num decorator_list decorator_list
N/A N/A os N/A re N/A json N/A string N/A datetime base64 b32decode six StringIO N/A unittest django.test TestCase Client django.core.urlresolvers reverse django.contrib.auth get_user_model SESSION_KEY django.utils.crypto get_random_string django.utils timezone django.core.management call_command django_u2f.forms BackupCodeForm TOTPForm django_u2f oath django_u2f.models TOTPDevice N/A User N/A get_user_model TwoFactorTest N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self client N/A Client N/A N/A self user N/A N/A N/A User objects create_superuser username test email test@example.com password asdfasdf N/A N/A self login_url N/A reverse u2f:login N/A login N/A N/A self N/A N/A N/A N/A N/A N/A self client post N/A self login_url N/A username password next test asdfasdf /next/ N/A enable_backupcode N/A N/A self N/A N/A N/A code N/A get_random_string length 6 allowed_chars N/A string digits N/A N/A N/A N/A N/A self user backup_codes create code code N/A code N/A N/A U2FTest N/A TwoFactorTest N/A enable_u2f N/A N/A self N/A N/A N/A N/A N/A N/A N/A self user u2f_keys create public_key BCux01toHSq_5YHfsw3EAqfGGKirLoHnDqAuW5RedtP8dGbJTJ55-QEJ_alPDM06kHw7UOUOCawdHinHVrNbnKw key_handle OJiPPVZ6oU-PszwbAAJhbanYvhawFrQi6n3AkcT1k7SeZDo3Ch6BU8i21kp2tcsyQ2BE7nc34RdljU4iS997vA app_id http://localhost.com:8000 N/A set_challenge N/A N/A self N/A N/A N/A session N/A N/A self client session N/A N/A session N/A u2f_authentication_challenges N/A N/A challenge version keyHandle appId jUvsJfqf2FMXkUTTFQ57gqNhVn0K2eJ7ElxnF3EK_M8 U2F_V2 OJiPPVZ6oU-PszwbAAJhbanYvhawFrQi6n3AkcT1k7SeZDo3Ch6BU8i21kp2tcsyQ2BE7nc34RdljU4iS997vA http://localhost.com:8000 N/A N/A N/A session save N/A N/A keyHandle clientData signatureData OJiPPVZ6oU-PszwbAAJhbanYvhawFrQi6n3AkcT1k7SeZDo3Ch6BU8i21kp2tcsyQ2BE7nc34RdljU4iS997vA eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoialV2c0pmcWYyRk1Ya1VUVEZRNTdncU5oVm4wSzJlSjdFbHhuRjNFS19NOCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbGhvc3QuY29tOjgwMDAiLCJjaWRfcHVia2V5IjoiIn0 AQAAADcwRQIhALnYwD3DMN3CAhKzhH7hwoJfSSiNMrOHhZq2nQA0WunTAiB2hKEpPn4u0znti-mjC4Xq6Ekv1tfopsapTsJ8EOxmYg N/A set_add_key N/A N/A self N/A N/A N/A session N/A N/A self client session N/A N/A session N/A u2f_registration_challenge N/A challenge version appId 1C57ZaTxUkXyMJqcfdNc_7Lp34aPgYDNt_nL2wwsLPQ U2F_V2 http://localhost.com:8000 N/A N/A N/A session save N/A N/A registrationData challenge version appId clientData BQR-zQiLHRPYDlXEDG_yZ_Y53mLP20BXMUpm-zqH1ntWHr3S1EZtJbFKNkWRwo2BQA-SBRZH4SvA2mZyCK2wP4AZQMF2iVGLM8guW_L2o7tfu9THxhMtOFRC6WICT_Kn2Vn3kxkMLjt4fBYO0ZeatzA5qaBk_O6PIypq0R9oYmHiQYEwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIDmr7y3CyKDwDThdf8MUyp3R_meuSz6pYPavyjt5vDlHAiEApjqut4HuWZzTz9WmjDTAa8_Dn8DmrXfMCbFFsYXU_nU 1C57ZaTxUkXyMJqcfdNc_7Lp34aPgYDNt_nL2wwsLPQ U2F_V2 http://localhost.com:8000 eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjFDNTdaYVR4VWtYeU1KcWNmZE5jXzdMcDM0YVBnWUROdF9uTDJ3d3NMUFEiLCJvcmlnaW4iOiJodHRwOi8vbG9jYWxob3N0LmNvbTo4MDAwIiwiY2lkX3B1YmtleSI6IiJ9 N/A N/A TestU2F N/A U2FTest N/A test_normal_login N/A N/A self N/A N/A N/A r N/A N/A self login N/A N/A N/A self assertTrue N/A N/A N/A r N/A location endswith /next/ N/A N/A N/A self assertEqual N/A str N/A N/A N/A self client session N/A SESSION_KEY N/A str N/A N/A self user id N/A test_u2f_login N/A N/A self N/A N/A N/A N/A N/A self enable_u2f N/A r N/A N/A self login N/A N/A N/A self assertNotIn SESSION_KEY N/A N/A self client session N/A N/A N/A self assertIn N/A reverse u2f:verify-second-factor N/A r N/A location N/A device_response N/A N/A self set_challenge N/A r N/A N/A N/A self client post N/A r N/A location N/A response type N/A N/A json dumps device_response u2f N/A N/A N/A self assertEquals N/A r status_code 302 N/A N/A N/A self assertTrue N/A N/A N/A r N/A location endswith /next/ N/A N/A N/A self assertEqual N/A str N/A N/A N/A self client session N/A SESSION_KEY N/A str N/A N/A self user id N/A test_failed_u2f_login N/A N/A self N/A N/A N/A N/A N/A self enable_u2f N/A r N/A N/A self login N/A device_response N/A N/A self set_challenge N/A N/A device_response N/A signatureData N/A a N/A N/A device_response N/A signatureData N/A 1 N/A r N/A N/A N/A self client post N/A r N/A location N/A response type N/A N/A json dumps device_response u2f N/A N/A N/A self assertNotIn SESSION_KEY N/A N/A self client session N/A N/A N/A self assertContains r U2F validation failed N/A test_verify_when_not_logged_in N/A N/A self N/A N/A N/A r N/A N/A N/A self client get N/A reverse u2f:verify-second-factor N/A N/A N/A self assertTrue N/A N/A N/A r N/A location endswith N/A self login_url N/A test_add_key N/A N/A self N/A N/A N/A N/A N/A self login N/A url N/A reverse u2f:add-u2f-key N/A r N/A N/A N/A self client get url N/A N/A N/A self assertContains r "challenge" N/A device_response N/A N/A self set_add_key N/A r N/A N/A N/A self client post url N/A response N/A N/A json dumps device_response N/A added_key_obj N/A N/A N/A N/A self user u2f_keys get N/A N/A N/A self assertEqual N/A added_key_obj public_key BH7NCIsdE9gOVcQMb_Jn9jneYs_bQFcxSmb7OofWe1YevdLURm0lsUo2RZHCjYFAD5IFFkfhK8DaZnIIrbA_gBk N/A N/A N/A self assertEqual N/A added_key_obj key_handle wXaJUYszyC5b8vaju1-71MfGEy04VELpYgJP8qfZWfeTGQwuO3h8Fg7Rl5q3MDmpoGT87o8jKmrRH2hiYeJBgQ N/A N/A N/A self assertEqual N/A added_key_obj app_id http://localhost.com:8000 N/A test_key_delete N/A N/A self N/A N/A N/A other_user N/A N/A N/A User objects create_superuser username abc email abc@example.com password asdfasdf N/A N/A N/A N/A other_user u2f_keys create N/A N/A N/A self enable_u2f N/A N/A N/A N/A self client login username test password asdfasdf N/A r N/A N/A N/A self client post N/A reverse u2f:u2f-keys N/A key_id delete N/A N/A N/A N/A N/A self user u2f_keys get pk 1 N/A N/A N/A self assertFalse N/A N/A N/A N/A self user u2f_keys exists N/A r N/A N/A N/A self client post N/A reverse u2f:u2f-keys N/A key_id delete N/A N/A N/A N/A other_user u2f_keys get pk 1 N/A N/A N/A self assertTrue N/A N/A N/A other_user u2f_keys exists N/A N/A N/A self assertEqual N/A r status_code 404 N/A N/A TestAdminLogin N/A TwoFactorTest N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestAdminLogin self setUp N/A N/A self admin_url N/A reverse admin:index N/A r N/A N/A N/A self client get N/A self admin_url N/A N/A N/A r status_code 302 N/A N/A N/A self login_url N/A r N/A location N/A N/A N/A self login_url N/A self admin_url N/A test_admin_template_rendered N/A N/A self N/A N/A N/A r N/A N/A N/A self client get N/A self login_url N/A N/A N/A self assertEqual N/A N/A N/A r templates N/A 0 name admin/login.html N/A test_login_with_u2f N/A N/A self N/A N/A N/A code N/A N/A self enable_backupcode N/A r N/A N/A N/A self client post N/A self login_url N/A username password test asdfasdf N/A N/A N/A self assertNotIn SESSION_KEY N/A N/A self client session N/A N/A N/A self assertIn N/A reverse u2f:verify-second-factor N/A r N/A location N/A verify_key_response N/A N/A N/A self client get N/A r N/A location N/A N/A N/A self assertContains verify_key_response Django administration N/A r N/A N/A N/A self client post N/A r N/A location N/A code type code backup N/A N/A N/A self assertEqual N/A str N/A N/A N/A self client session N/A SESSION_KEY N/A str N/A N/A self user id N/A N/A N/A self assertTrue N/A N/A N/A r N/A location endswith N/A self admin_url N/A test_login_without_u2f N/A N/A self N/A N/A N/A r N/A N/A N/A self client post N/A self login_url N/A username password this_is_the_login_form next test asdfasdf 1 N/A self admin_url N/A N/A N/A self assertTrue N/A N/A N/A r N/A location endswith N/A self admin_url N/A N/A N/A self assertEqual N/A str N/A N/A N/A self client session N/A SESSION_KEY N/A str N/A N/A self user id N/A N/A TestBackupCode N/A TwoFactorTest N/A test_validation_error N/A N/A self N/A N/A N/A N/A N/A self enable_backupcode N/A r N/A N/A self login N/A N/A N/A self assertNotIn SESSION_KEY N/A N/A self client session N/A N/A N/A self assertIn N/A reverse u2f:verify-second-factor N/A r N/A location N/A r N/A N/A N/A self client post N/A r N/A location N/A type backup N/A N/A N/A self assertContains r This field is required. N/A test_code_required_and_login N/A N/A self N/A N/A N/A code N/A N/A self enable_backupcode N/A r N/A N/A self login N/A N/A N/A self assertNotIn SESSION_KEY N/A N/A self client session N/A N/A N/A self assertIn N/A reverse u2f:verify-second-factor N/A r N/A location N/A r N/A N/A N/A self client post N/A r N/A location N/A code type code backup N/A N/A N/A self assertEqual N/A str N/A N/A N/A self client session N/A SESSION_KEY N/A str N/A N/A self user id N/A N/A N/A self assertTrue N/A N/A N/A r N/A location endswith /next/ N/A N/A N/A self assertFalse N/A N/A N/A N/A N/A N/A self user backup_codes filter code code exists N/A test_incorrect_code N/A N/A self N/A N/A N/A N/A N/A self enable_backupcode N/A r N/A N/A self login N/A r N/A N/A N/A self client post N/A r N/A location N/A code type abc backup N/A N/A N/A self assertNotIn SESSION_KEY N/A N/A self client session N/A N/A N/A self assertContains r N/A BackupCodeForm INVALID_ERROR_MESSAGE N/A test_add_backup_codes N/A N/A self N/A N/A N/A N/A N/A self login N/A r N/A N/A N/A self client post N/A reverse u2f:backup-codes N/A N/A N/A self assertEqual N/A r status_code 302 N/A N/A N/A self assertEqual N/A N/A N/A N/A self user backup_codes count 10 N/A test_list_backup_codes N/A N/A self N/A N/A N/A N/A N/A self login N/A N/A N/A N/A N/A self user backup_codes create code foobar N/A otheruser N/A N/A N/A User objects create_superuser username test2 email test2@example.com password asdfasdf N/A N/A N/A N/A otheruser backup_codes create code test2code N/A r N/A N/A N/A self client get N/A reverse u2f:backup-codes N/A N/A N/A self assertContains r foobar N/A N/A N/A self assertNotContains r test2code N/A test_addbackupcode N/A N/A self N/A N/A N/A out N/A StringIO N/A N/A call_command addbackupcode N/A N/A N/A self user get_username stdout out N/A code N/A N/A N/A N/A out getvalue strip N/A N/A N/A self assertTrue N/A N/A N/A N/A N/A N/A self user backup_codes filter code code exists N/A N/A call_command addbackupcode N/A N/A N/A self user get_username code foo stdout out N/A N/A N/A self assertTrue N/A N/A N/A N/A N/A N/A self user backup_codes filter code foo exists N/A test_login_while_already_logged_in N/A N/A self N/A N/A N/A N/A N/A N/A User objects create_superuser username test2 email test2@example.com password asdfasdf N/A r N/A N/A N/A self client post N/A self login_url N/A username password next test2 asdfasdf /next/ N/A N/A N/A r status_code 302 N/A code N/A N/A self enable_backupcode N/A r N/A N/A self login N/A N/A N/A self assertIn N/A reverse u2f:verify-second-factor N/A r N/A location N/A r N/A N/A N/A self client post N/A r N/A location N/A code type code backup N/A N/A N/A self assertEqual N/A str N/A N/A N/A self client session N/A SESSION_KEY N/A str N/A N/A self user id N/A N/A N/A self assertTrue N/A N/A N/A r N/A location endswith /next/ N/A N/A N/A self assertFalse N/A N/A N/A N/A N/A N/A self user backup_codes filter code code exists N/A N/A TestTOTP N/A U2FTest N/A enable_totp N/A N/A self N/A N/A N/A key N/A N/A os urandom 20 N/A N/A N/A N/A N/A self user totp_devices create key key N/A key N/A test_login N/A N/A self N/A N/A N/A key N/A N/A self enable_totp N/A r N/A N/A self login N/A N/A N/A self assertNotIn SESSION_KEY N/A N/A self client session N/A N/A N/A self assertIn N/A reverse u2f:verify-second-factor N/A r N/A location N/A r N/A N/A N/A self client post N/A r N/A location N/A token type N/A N/A oath totp key N/A N/A timezone now totp N/A N/A N/A self assertEqual N/A str N/A N/A N/A self client session N/A SESSION_KEY N/A str N/A N/A self user id N/A N/A N/A self assertTrue N/A N/A N/A r N/A location endswith /next/ N/A test_token_cant_be_used_twice N/A N/A self N/A N/A N/A key N/A N/A self enable_totp N/A r N/A N/A self login N/A token N/A N/A N/A oath totp key N/A N/A timezone now N/A r N/A N/A N/A self client post N/A r N/A location N/A token type token totp N/A N/A N/A self assertEqual N/A str N/A N/A N/A self client session N/A SESSION_KEY N/A str N/A N/A self user id N/A N/A N/A N/A self client logout N/A r N/A N/A self login N/A r N/A N/A N/A self client post N/A r N/A location N/A token type token totp N/A N/A N/A self assertContains r N/A TOTPForm INVALID_ERROR_MESSAGE N/A test_incorrect_code N/A N/A self N/A N/A N/A key N/A N/A self enable_totp N/A r N/A N/A self login N/A r N/A N/A N/A self client post N/A r N/A location N/A token type N/A N/A oath totp key N/A N/A N/A timezone now N/A N/A datetime timedelta seconds 120 totp N/A N/A N/A self assertNotIn SESSION_KEY N/A N/A self client session N/A N/A N/A self assertContains r N/A TOTPForm INVALID_ERROR_MESSAGE N/A _extract_key N/A N/A self response N/A N/A N/A N/A N/A N/A N/A re search <tt>([A-Z0-9]+)</tt> N/A N/A N/A response content decode utf-8 group 1 N/A test_add_device N/A N/A self N/A N/A N/A N/A N/A self login N/A url N/A reverse u2f:add-totp N/A r N/A N/A N/A self client get url N/A N/A N/A self assertContains r svg N/A base32_key N/A N/A self _extract_key r N/A key N/A b32decode base32_key N/A r N/A N/A N/A self client post url N/A base32_key token base32_key N/A N/A oath totp key N/A N/A timezone now N/A N/A N/A self assertEqual N/A r status_code 302 N/A N/A N/A self assertTrue N/A N/A N/A N/A N/A N/A self user totp_devices filter key key exists N/A test_add_device_incorrect_token N/A N/A self N/A N/A N/A N/A N/A self login N/A url N/A reverse u2f:add-totp N/A r N/A N/A N/A self client get url N/A base32_key N/A N/A self _extract_key r N/A key N/A b32decode base32_key N/A r N/A N/A N/A self client post url N/A base32_key token base32_key N/A N/A oath totp key N/A N/A N/A timezone now N/A N/A datetime timedelta seconds 120 N/A N/A N/A self assertEqual N/A r status_code 200 N/A N/A N/A self assertContains r N/A TOTPForm INVALID_ERROR_MESSAGE N/A test_delete_device N/A N/A self N/A N/A N/A N/A N/A self login N/A N/A N/A self enable_totp N/A r N/A N/A N/A self client post N/A reverse u2f:totp-devices N/A device_id delete N/A N/A N/A N/A N/A self user totp_devices get pk 1 N/A N/A N/A self assertEqual N/A r status_code 302 N/A N/A N/A self assertFalse N/A N/A N/A N/A self user totp_devices exists N/A test_slop N/A N/A self N/A N/A N/A key N/A N/A os urandom 20 N/A device N/A TOTPDevice key key N/A now N/A N/A timezone now N/A N/A N/A self assertTrue N/A N/A device validate_token N/A N/A oath totp key N/A now N/A N/A datetime timedelta seconds 30 N/A N/A N/A self assertTrue N/A N/A device validate_token N/A N/A oath totp key now N/A N/A N/A self assertTrue N/A N/A device validate_token N/A N/A oath totp key N/A now N/A N/A datetime timedelta seconds 30 N/A N/A