Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/iMerica/dj-rest-auth
/ functions
Functions
296 in github.com/iMerica/dj-rest-auth
⨍
Functions
296
◇
Types & classes
85
↳
Endpoints
2
↓ 187 callers
Method
post
(self, *args, **kwargs)
dj_rest_auth/tests/mixins.py:67
↓ 49 callers
Method
get
(self, *args, **kwargs)
dj_rest_auth/tests/mixins.py:70
↓ 38 callers
Method
activate
(user, secret)
dj_rest_auth/mfa/totp.py:34
↓ 26 callers
Function
generate_totp_secret
()
dj_rest_auth/mfa/totp.py:12
↓ 22 callers
Method
get
(self, request, *args, **kwargs)
dj_rest_auth/views.py:141
↓ 15 callers
Method
get
(self, request, *args, **kwargs)
dj_rest_auth/mfa/views.py:233
↓ 14 callers
Function
log_mfa_event
(event, *, user=None, request=None, level=logging.INFO, **details)
dj_rest_auth/mfa/audit.py:12
↓ 12 callers
Function
is_mfa_enabled
(user)
dj_rest_auth/mfa/utils.py:41
↓ 11 callers
Method
get_serializer
(self, *args, **kwargs)
dj_rest_auth/registration/views.py:109
↓ 10 callers
Method
get
(self, *args, **kwargs)
dj_rest_auth/registration/views.py:112
↓ 8 callers
Method
_login_get_token
Login without MFA and get auth token.
dj_rest_auth/tests/test_mfa.py:163
↓ 8 callers
Method
save
(self, request)
dj_rest_auth/registration/serializers.py:274
↓ 7 callers
Function
get_token_model
()
dj_rest_auth/models.py:8
↓ 7 callers
Method
validate_code
(user, code)
dj_rest_auth/mfa/totp.py:60
↓ 5 callers
Method
create
(self, request, *args, **kwargs)
dj_rest_auth/registration/views.py:65
↓ 5 callers
Function
override_api_settings
(**settings)
dj_rest_auth/tests/utils.py:7
↓ 5 callers
Method
post
(self, request, *args, **kwargs)
dj_rest_auth/views.py:122
↓ 5 callers
Method
save
(self, request, **kwargs)
dj_rest_auth/forms.py:49
↓ 4 callers
Method
_login
(self, expected_status_code=status.HTTP_200_OK)
dj_rest_auth/tests/mixins.py:97
↓ 4 callers
Method
_logout
(self)
dj_rest_auth/tests/mixins.py:104
↓ 4 callers
Method
_mfa_login_get_token
Login with MFA: get ephemeral token, verify with TOTP, return auth token.
dj_rest_auth/tests/test_mfa.py:170
↓ 4 callers
Method
authenticate
(self, **kwargs)
dj_rest_auth/serializers.py:26
↓ 4 callers
Function
checkAuth
()
demo/spa-client/context/AuthContext.tsx:33
↓ 4 callers
Method
deactivate
(user)
dj_rest_auth/mfa/totp.py:43
↓ 4 callers
Method
get_secret
(user)
dj_rest_auth/mfa/totp.py:49
↓ 4 callers
Method
get_unused_codes
(user)
dj_rest_auth/mfa/recovery_codes.py:38
↓ 4 callers
Function
useAuth
()
demo/spa-client/context/AuthContext.tsx:116
↓ 4 callers
Function
validate_totp_code
(secret, code)
dj_rest_auth/mfa/totp.py:25
↓ 3 callers
Method
_generate_codes
(seed, count)
dj_rest_auth/mfa/recovery_codes.py:15
↓ 3 callers
Method
_get_request
(self)
dj_rest_auth/registration/serializers.py:57
↓ 3 callers
Function
_signup_field_required
Get field 'required' from SIGNUP_FIELDS (allauth>=65.5) with fallback.
dj_rest_auth/registration/serializers.py:24
↓ 3 callers
Function
create_ephemeral_token
(user)
dj_rest_auth/mfa/utils.py:12
↓ 3 callers
Function
create_totp_activation_token
(user, secret)
dj_rest_auth/mfa/utils.py:25
↓ 3 callers
Method
init
(self)
dj_rest_auth/tests/mixins.py:76
↓ 3 callers
Function
jwt_encode
(user)
dj_rest_auth/utils.py:9
↓ 3 callers
Method
send_request
(self, request_method, *args, **kwargs)
dj_rest_auth/tests/mixins.py:38
↓ 3 callers
Function
verify_ephemeral_token
(token, max_age=None)
dj_rest_auth/mfa/utils.py:17
↓ 2 callers
Method
_generate_uid_and_token
(self, user)
dj_rest_auth/tests/test_api.py:75
↓ 2 callers
Method
_get_request
(self)
dj_rest_auth/social_serializers.py:20
↓ 2 callers
Method
_get_request
(self)
dj_rest_auth/social_serializers.py:92
↓ 2 callers
Method
_password_reset
(self)
dj_rest_auth/tests/test_api.py:385
↓ 2 callers
Function
_sanitize
(value)
dj_rest_auth/mfa/audit.py:6
↓ 2 callers
Method
_twitter_social_auth
(self)
dj_rest_auth/tests/test_social.py:140
↓ 2 callers
Method
_validate_username_email
(self, username, email, password)
dj_rest_auth/serializers.py:47
↓ 2 callers
Method
dispatch
(self, *args, **kwargs)
dj_rest_auth/views.py:47
↓ 2 callers
Method
enforce_csrf
Enforce CSRF validation for session based authentication.
dj_rest_auth/jwt_auth.py:121
↓ 2 callers
Function
format_lazy
(s, *args, **kwargs)
dj_rest_auth/utils.py:18
↓ 2 callers
Method
get
(self, *args, **kwargs)
dj_rest_auth/tests/urls.py:30
↓ 2 callers
Function
get_refresh_view
Returns a Token Refresh CBV without a circular import
dj_rest_auth/jwt_auth.py:93
↓ 2 callers
Method
get_response
(self)
dj_rest_auth/views.py:77
↓ 2 callers
Method
get_social_login
:param adapter: allauth.socialaccount Adapter subclass. Usually OAuthAdapter or Auth2Adapter :param app: `allauth.sociala
dj_rest_auth/registration/serializers.py:63
↓ 2 callers
Method
login
(self)
dj_rest_auth/mfa/views.py:33
↓ 2 callers
Method
logout
(self, request)
dj_rest_auth/views.py:152
↓ 2 callers
Method
patch
(self, path, data='', content_type=MULTIPART_CONTENT, follow=False, **extra)
dj_rest_auth/tests/mixins.py:25
↓ 2 callers
Method
process_login
(self)
dj_rest_auth/views.py:50
↓ 2 callers
Method
save
(self)
dj_rest_auth/serializers.py:247
↓ 2 callers
Function
set_jwt_access_cookie
(response, access_token)
dj_rest_auth/jwt_auth.py:12
↓ 2 callers
Function
set_jwt_refresh_cookie
(response, refresh_token)
dj_rest_auth/jwt_auth.py:33
↓ 2 callers
Method
validate
(self, attrs)
dj_rest_auth/serializers.py:351
↓ 2 callers
Method
validate_code
(self, code)
dj_rest_auth/mfa/serializers.py:133
↓ 2 callers
Function
verify_totp_activation_token
(token, max_age=None)
dj_rest_auth/mfa/utils.py:30
↓ 1 callers
Method
_generate_qr_data_uri
(data)
dj_rest_auth/mfa/views.py:168
↓ 1 callers
Function
_has_oauth_query_bug
Check if allauth's OAuth.query() has a broken sess.request() call signature.
dj_rest_auth/tests/test_social.py:33
↓ 1 callers
Method
_validate_email
(self, email, password)
dj_rest_auth/serializers.py:29
↓ 1 callers
Method
_validate_username
(self, username, password)
dj_rest_auth/serializers.py:38
↓ 1 callers
Function
build_totp_uri
(user, secret)
dj_rest_auth/mfa/totp.py:16
↓ 1 callers
Method
clean_email
Invalid email should not raise error, as this would leak users for unit test: test_password_reset_with_invalid_email
dj_rest_auth/forms.py:39
↓ 1 callers
Method
custom_signup
(self, request, user)
dj_rest_auth/registration/serializers.py:264
↓ 1 callers
Method
custom_validation
(self, attrs)
dj_rest_auth/serializers.py:281
↓ 1 callers
Method
custom_validation
(self, attrs)
dj_rest_auth/serializers.py:348
↓ 1 callers
Method
extract_refresh_token
(self)
dj_rest_auth/jwt_auth.py:77
↓ 1 callers
Function
fetchSetupData
()
demo/spa-client/app/mfa/setup/page.tsx:23
↓ 1 callers
Method
finalize_response
(self, request, response, *args, **kwargs)
dj_rest_auth/jwt_auth.py:101
↓ 1 callers
Method
get_auth_user
Retrieve the auth user from given POST payload by using either `allauth` auth scheme or bare Django auth scheme. Returns the
dj_rest_auth/serializers.py:94
↓ 1 callers
Method
get_auth_user_using_allauth
(self, username, email, password)
dj_rest_auth/serializers.py:58
↓ 1 callers
Method
get_auth_user_using_orm
(self, username, email, password)
dj_rest_auth/serializers.py:82
↓ 1 callers
Method
get_cleaned_data
(self)
dj_rest_auth/registration/serializers.py:267
↓ 1 callers
Method
get_email_options
Override this method to change default e-mail options
dj_rest_auth/serializers.py:235
↓ 1 callers
Method
get_object
(self)
dj_rest_auth/views.py:232
↓ 1 callers
Method
get_queryset
(self)
dj_rest_auth/registration/views.py:200
↓ 1 callers
Method
get_queryset
(self)
dj_rest_auth/registration/views.py:212
↓ 1 callers
Method
get_response_data
(self, user)
dj_rest_auth/registration/views.py:49
↓ 1 callers
Method
get_response_serializer
(self)
dj_rest_auth/views.py:53
↓ 1 callers
Method
get_serializer_class
(self)
dj_rest_auth/mfa/views.py:112
↓ 1 callers
Method
get_serializer_class
(self)
dj_rest_auth/mfa/views.py:230
↓ 1 callers
Method
get_serializer_class
(self)
dj_rest_auth/mfa/views.py:266
↓ 1 callers
Method
get_serializer_class
(self)
dj_rest_auth/mfa/views.py:281
↓ 1 callers
Method
get_social_login
:param adapter: allauth.socialaccount Adapter subclass. Usually OAuthAdapter or Auth2Adapter :param app: `allauth.sociala
dj_rest_auth/social_serializers.py:26
↓ 1 callers
Method
get_social_login
:param adapter: allauth.socialaccount Adapter subclass. Usually OAuthAdapter or Auth2Adapter :param app: `allauth.sociala
dj_rest_auth/social_serializers.py:98
↓ 1 callers
Method
get_token
(cls, user)
dj_rest_auth/tests/test_api.py:29
↓ 1 callers
Method
get_user
Required to allow using custom USER_DETAILS_SERIALIZER in JWTSerializer. Defining it here to avoid circular imports
dj_rest_auth/serializers.py:201
↓ 1 callers
Method
init_mfa
(self)
dj_rest_auth/tests/test_mfa.py:148
↓ 1 callers
Function
login
(data: any)
demo/spa-client/context/AuthContext.tsx:48
↓ 1 callers
Method
login
(self)
dj_rest_auth/views.py:65
↓ 1 callers
Method
password_reset_form_class
(self)
dj_rest_auth/serializers.py:229
↓ 1 callers
Method
perform_create
(self, serializer)
dj_rest_auth/registration/views.py:83
↓ 1 callers
Method
post_signup
Inject behavior when the user signs up with a social account. :param login: The social login instance being registered. :typ
dj_rest_auth/registration/serializers.py:205
↓ 1 callers
Function
register
(data: any)
demo/spa-client/context/AuthContext.tsx:95
↓ 1 callers
Function
runtests
()
runtests.py:16
↓ 1 callers
Method
set_callback_url
(self, view, adapter_class)
dj_rest_auth/registration/serializers.py:78
next →
1–100 of 296, ranked by callers