MCPcopy Create free account

hub / github.com/cosmic-byte/flask-restplus-boilerplate / functions

Functions47 in github.com/cosmic-byte/flask-restplus-boilerplate

↓ 7 callersMethodget
get a user given its identifier
app/main/controller/user_controller.py:37
↓ 6 callersFunctionregister_user
(self)
app/test/test_auth.py:9
↓ 4 callersMethodencode_auth_token
Generates the Auth Token :return: string
app/main/model/user.py:34
↓ 4 callersFunctionlogin_user
(self)
app/test/test_auth.py:21
↓ 4 callersMethodpost
Creates a new User
app/main/controller/user_controller.py:25
↓ 3 callersMethoddecode_auth_token
Decodes the auth token :param auth_token: :return: integer|string
app/main/model/user.py:54
↓ 2 callersMethodget_logged_in_user
(new_request)
app/main/service/auth_helper.py:62
↓ 1 callersMethodcheck_blacklist
(auth_token: str)
app/main/model/blacklist.py:23
↓ 1 callersMethodcheck_password
(self, password: str)
app/main/model/user.py:30
↓ 1 callersFunctioncreate_app
(config_name: str)
app/main/__init__.py:12
↓ 1 callersFunctiongenerate_token
(user: User)
app/main/service/user_service.py:37
↓ 1 callersFunctionget_a_user
(public_id)
app/main/service/user_service.py:33
↓ 1 callersFunctionget_all_users
()
app/main/service/user_service.py:29
↓ 1 callersMethodlogin_user
(data: Dict[str, str])
app/main/service/auth_helper.py:9
↓ 1 callersMethodlogout_user
(data: str)
app/main/service/auth_helper.py:38
↓ 1 callersFunctionsave_changes
(data: User)
app/main/service/user_service.py:55
↓ 1 callersFunctionsave_new_user
(data: Dict[str, str])
app/main/service/user_service.py:9
↓ 1 callersFunctionsave_token
(token: str)
app/main/service/blacklist_service.py:7
Method__init__
(self, token)
app/main/model/blacklist.py:15
Method__repr__
(self)
app/main/model/user.py:72
Method__repr__
(self)
app/main/model/blacklist.py:19
Functionadmin_token_required
(f: Callable)
app/main/util/decorator.py:24
Methodcreate_app
(self)
app/test/test_config.py:12
Methodcreate_app
(self)
app/test/test_config.py:26
Methodcreate_app
(self)
app/test/test_config.py:39
Methodcreate_app
(self)
app/test/base.py:11
Functiondecorated
(*args, **kwargs)
app/main/util/decorator.py:11
Methodget
List all registered users
app/main/controller/user_controller.py:18
Methodpassword
(self)
app/main/model/user.py:23
Methodpost
(self)
app/main/controller/auth_controller.py:19
Methodpost
(self)
app/main/controller/auth_controller.py:31
Functionrun
()
manage.py:24
MethodsetUp
(self)
app/test/base.py:15
MethodtearDown
(self)
app/test/base.py:19
Functiontest
Runs the unit tests.
manage.py:29
Methodtest_app_is_development
(self)
app/test/test_config.py:16
Methodtest_app_is_production
(self)
app/test/test_config.py:43
Methodtest_app_is_testing
(self)
app/test/test_config.py:30
Methodtest_decode_auth_token
(self)
app/test/test_user_model.py:23
Methodtest_encode_auth_token
(self)
app/test/test_user_model.py:12
Methodtest_non_registered_user_login
Test for login of non-registered user
app/test/test_auth.py:78
Methodtest_registered_user_login
Test for login of registered-user login
app/test/test_auth.py:56
Methodtest_registered_with_already_registered_user
Test registration with already registered email
app/test/test_auth.py:44
Methodtest_registration
Test for user registration
app/test/test_auth.py:33
Methodtest_valid_blacklisted_token_logout
Test for logout after a valid token gets blacklisted
app/test/test_auth.py:123
Methodtest_valid_logout
Test for logout before token expires
app/test/test_auth.py:89
Functiontoken_required
(f)
app/main/util/decorator.py:9