Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Dict Str Str Str Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Return Call AttributeLoad NameLoad attr Str keyword Dict Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Num Str Str Str Str Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call 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 Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr keyword Num Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str ListLoad Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str ListLoad Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str ListLoad Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str ListLoad Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr keyword Num ClassDef bases NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Str Num Str Str Str Str Str Call AttributeLoad NameLoad attr Call AttributeLoad BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareLtE NameLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A json N/A datetime N/A time httpretty HTTPretty social.actions do_disconnect social.backends.oauth BaseOAuth2 social.exceptions AuthForbidden social.tests.models User social.tests.backends.oauth OAuth2Test DummyOAuth2 N/A BaseOAuth2 N/A N/A name dummy N/A AUTHORIZATION_URL http://dummy.com/oauth/authorize N/A ACCESS_TOKEN_URL http://dummy.com/oauth/access_token N/A REVOKE_TOKEN_URL https://dummy.com/oauth/revoke N/A REVOKE_TOKEN_METHOD GET N/A EXTRA_DATA N/A N/A id id N/A expires expires N/A empty empty True url get_user_details N/A N/A self response N/A N/A N/A Return user details from Github account N/A N/A username email first_name last_name N/A N/A response get username N/A N/A response get email N/A N/A response get first_name N/A N/A response get last_name N/A user_data N/A N/A self access_token N/A args kwargs N/A N/A Loads user data from service N/A N/A N/A self get_json http://dummy.com/user params N/A access_token access_token N/A N/A DummyOAuth2Test N/A OAuth2Test N/A N/A backend_path social.tests.backends.test_dummy.DummyOAuth2 N/A user_data_url http://dummy.com/user N/A expected_username foobar N/A access_token_body N/A N/A json dumps N/A access_token token_type foobar bearer N/A user_data_body N/A N/A json dumps N/A id username url first_name last_name email 1 foobar http://dummy.com/user/foobar Foo Bar foo@bar.com test_login N/A N/A self N/A N/A N/A N/A N/A self do_login N/A test_partial_pipeline N/A N/A self N/A N/A N/A N/A N/A self do_partial_pipeline N/A test_tokens N/A N/A self N/A N/A N/A user N/A N/A self do_login N/A N/A N/A self assertEqual N/A N/A N/A user social N/A 0 access_token foobar N/A test_revoke_token N/A N/A self N/A N/A N/A N/A N/A N/A self strategy set_settings N/A SOCIAL_AUTH_REVOKE_TOKENS_ON_DISCONNECT True N/A N/A N/A self do_login N/A user N/A N/A User get N/A self expected_username N/A N/A user password password N/A N/A N/A HTTPretty register_uri N/A N/A self _method N/A N/A self backend REVOKE_TOKEN_METHOD N/A N/A self backend REVOKE_TOKEN_URL status 200 N/A N/A do_disconnect N/A self backend user N/A N/A WhitelistEmailsTest N/A DummyOAuth2Test N/A test_valid_login N/A N/A self N/A N/A N/A N/A N/A N/A self strategy set_settings N/A SOCIAL_AUTH_WHITELISTED_EMAILS N/A foo@bar.com N/A N/A N/A self do_login N/A test_invalid_login N/A N/A self N/A N/A N/A N/A N/A N/A self strategy set_settings N/A SOCIAL_AUTH_WHITELISTED_EMAILS N/A foo2@bar.com N/A N/A N/A self assertRaises AuthForbidden N/A N/A N/A N/A self do_login N/A N/A WhitelistDomainsTest N/A DummyOAuth2Test N/A test_valid_login N/A N/A self N/A N/A N/A N/A N/A N/A self strategy set_settings N/A SOCIAL_AUTH_WHITELISTED_DOMAINS N/A bar.com N/A N/A N/A self do_login N/A test_invalid_login N/A N/A self N/A N/A N/A N/A N/A N/A self strategy set_settings N/A SOCIAL_AUTH_WHITELISTED_EMAILS N/A bar2.com N/A N/A N/A self assertRaises AuthForbidden N/A N/A N/A N/A self do_login N/A N/A N/A DELTA N/A N/A datetime timedelta days 1 ExpirationTimeTest N/A DummyOAuth2Test N/A N/A user_data_body N/A N/A json dumps N/A id username url first_name last_name email expires 1 foobar http://dummy.com/user/foobar Foo Bar foo@bar.com N/A N/A time mktime N/A N/A N/A N/A N/A N/A datetime datetime utcnow DELTA timetuple test_expires_time N/A N/A self N/A N/A N/A user N/A N/A self do_login N/A social N/A N/A user social N/A 0 N/A expiration N/A N/A social expiration_datetime N/A N/A N/A self assertEqual N/A expiration DELTA True N/A N/A