Island: Move AuthenticationService to authentication directory

This commit is contained in:
Mike Salvatore 2021-11-18 08:48:07 -05:00
parent 2fb2bc004f
commit a3bdda2051
6 changed files with 5 additions and 3 deletions

View File

@ -9,7 +9,7 @@ from jwt import PyJWTError
from common.utils.exceptions import IncorrectCredentialsError
from monkey_island.cc.resources.auth.credential_utils import get_username_password_from_request
from monkey_island.cc.services.authentication import AuthenticationService
from monkey_island.cc.services import AuthenticationService
logger = logging.getLogger(__name__)

View File

@ -5,7 +5,7 @@ from flask import make_response, request
from common.utils.exceptions import InvalidRegistrationCredentialsError, RegistrationNotNeededError
from monkey_island.cc.resources.auth.credential_utils import get_username_password_from_request
from monkey_island.cc.services.authentication import AuthenticationService
from monkey_island.cc.services import AuthenticationService
logger = logging.getLogger(__name__)

View File

@ -0,0 +1 @@
from .authentication.authentication_service import AuthenticationService

View File

@ -1,7 +1,8 @@
from monkey_island.cc.services.authentication import AuthenticationService
from monkey_island.cc.services.post_breach_files import PostBreachFilesService
from monkey_island.cc.services.run_local_monkey import LocalMonkeyRunService
from . import AuthenticationService
def initialize_services(data_dir):
PostBreachFilesService.initialize(data_dir)