Debian Codegraph @

allauth/socialaccount/signals.py

raw
1 from django.dispatch import Signal
2
3
4 # Emitted after a user successfully authenticates via a social provider,
5 # but before the login is actually processed. This signal is emitted
6 # for social logins, signups and when connecting additional social
7 # accounts to an account.
8 # Arguments:
9 # - request: HttpRequest
10 # - sociallogin: SocialLogin
11 pre_social_login = Signal()
12
13 # Emitted after a user connects a social account to their local account.
14 # Arguments:
15 # - request: HttpRequest
16 # - sociallogin: SocialLogin
17 social_account_added = Signal()
18
19 # Emitted after a user connects an already existing social account to
20 # their local account. The social account will have an updated token and
21 # refreshed extra_data.
22 # Arguments:
23 # - request: HttpRequest
24 # - sociallogin: SocialLogin
25 social_account_updated = Signal()
26
27 # Emitted after a user disconnects a social account from their local
28 # account.
29 # Arguments:
30 # - request: HttpRequest
31 # - socialaccount: SocialAccount
32 social_account_removed = Signal()