0.12.4 fix login token
This commit is contained in:
parent
c155da858e
commit
96a72a2cd7
|
@ -522,7 +522,7 @@ class TestAgentViews(TacticalTestCase):
|
|||
|
||||
self.check_not_authenticated("post", url)
|
||||
|
||||
@patch("meshctrl.utils.get_auth_token")
|
||||
@patch("meshctrl.utils.get_login_token")
|
||||
def test_meshcentral_tabs(self, mock_token):
|
||||
url = f"{base_url}/{self.agent.agent_id}/meshcentral/"
|
||||
mock_token.return_value = "askjh1k238uasdhk487234jadhsajksdhasd"
|
||||
|
|
|
@ -4,7 +4,7 @@ import os
|
|||
import random
|
||||
import string
|
||||
import time
|
||||
from meshctrl.utils import get_auth_token
|
||||
from meshctrl.utils import get_login_token
|
||||
|
||||
from core.models import CodeSignToken
|
||||
from core.utils import (
|
||||
|
@ -224,7 +224,7 @@ class AgentMeshCentral(APIView):
|
|||
agent = get_object_or_404(Agent, agent_id=agent_id)
|
||||
core = get_core_settings()
|
||||
|
||||
token = get_auth_token(user=core.mesh_username, key=core.mesh_token)
|
||||
token = get_login_token(key=core.mesh_token, user=f"user//{core.mesh_username}")
|
||||
|
||||
control = f"{core.mesh_site}/?login={token}&gotonode={agent.mesh_node_id}&viewmode=11&hide=31"
|
||||
terminal = f"{core.mesh_site}/?login={token}&gotonode={agent.mesh_node_id}&viewmode=12&hide=31"
|
||||
|
|
|
@ -35,4 +35,4 @@ vine==5.0.0
|
|||
websockets==10.2
|
||||
zipp==3.8.0
|
||||
drf_spectacular==0.22.0
|
||||
meshctrl==0.1.13
|
||||
meshctrl==0.1.15
|
||||
|
|
|
@ -17,7 +17,7 @@ LINUX_AGENT_SCRIPT = BASE_DIR / "core" / "agent_linux.sh"
|
|||
AUTH_USER_MODEL = "accounts.User"
|
||||
|
||||
# latest release
|
||||
TRMM_VERSION = "0.12.3"
|
||||
TRMM_VERSION = "0.12.4"
|
||||
|
||||
# bump this version everytime vue code is changed
|
||||
# to alert user they need to manually refresh their browser
|
||||
|
|
Loading…
Reference in New Issue