Skip to content

Commit

Permalink
Island: Register AgentOTP resource with other authentication resources
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyamalviya committed Mar 10, 2023
1 parent 6e4a3a4 commit a975ae4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions monkey/monkey_island/cc/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
ResetAgentConfiguration,
TerminateAllAgents,
)
from monkey_island.cc.services.authentication_service.flask_resources import AgentOTP
from monkey_island.cc.resources.exploitations.monkey_exploitation import MonkeyExploitation
from monkey_island.cc.resources.island_mode import IslandMode
from monkey_island.cc.resources.local_run import LocalRun
Expand Down Expand Up @@ -91,7 +90,6 @@ def init_api_resources(api: FlaskDIWrapper):
def init_restful_endpoints(api: FlaskDIWrapper):
api.add_resource(Root)

api.add_resource(AgentOTP)
api.add_resource(Agents)
api.add_resource(LocalRun)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from common import DIContainer

from ..authentication_facade import AuthenticationFacade
from .agent_otp import AgentOTP
from .login import Login
from .logout import Logout
from .register import Register
Expand All @@ -18,3 +19,4 @@ def register_resources(api: flask_restful.Api, container: DIContainer):
)
api.add_resource(Login, *Login.urls, resource_class_args=(authentication_facade,))
api.add_resource(Logout, *Logout.urls, resource_class_args=(authentication_facade,))
api.add_resource(AgentOTP, *AgentOTP.urls)

0 comments on commit a975ae4

Please sign in to comment.