gns3-server 3.0.0a6__py3-none-any.whl → 3.0.0b2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of gns3-server might be problematic. Click here for more details.
- {gns3_server-3.0.0a6.dist-info → gns3_server-3.0.0b2.dist-info}/METADATA +17 -18
- {gns3_server-3.0.0a6.dist-info → gns3_server-3.0.0b2.dist-info}/RECORD +68 -67
- {gns3_server-3.0.0a6.dist-info → gns3_server-3.0.0b2.dist-info}/WHEEL +1 -1
- gns3server/api/routes/compute/notifications.py +1 -5
- gns3server/api/routes/controller/acl.py +6 -2
- gns3server/api/routes/controller/controller.py +0 -5
- gns3server/api/routes/controller/projects.py +0 -4
- gns3server/appliances/asterfusion-vAsterNOS.gns3a +49 -0
- gns3server/appliances/bird.gns3a +1 -1
- gns3server/appliances/bird2.gns3a +14 -0
- gns3server/appliances/cisco-asav.gns3a +13 -0
- gns3server/appliances/cisco-c8000v.gns3a +13 -0
- gns3server/appliances/cisco-cat9k.gns3a +16 -3
- gns3server/appliances/cisco-csr1000v.gns3a +13 -0
- gns3server/appliances/cisco-iosv.gns3a +14 -0
- gns3server/appliances/cisco-iosxrv9k.gns3a +13 -0
- gns3server/appliances/cisco-iou-l2.gns3a +12 -0
- gns3server/appliances/cisco-iou-l3.gns3a +12 -0
- gns3server/appliances/cisco-nxosv9k.gns3a +70 -0
- gns3server/appliances/clavister-netsheild.gns3a +15 -2
- gns3server/appliances/clavister-netwall.gns3a +15 -2
- gns3server/appliances/debian.gns3a +7 -7
- gns3server/appliances/dell-ftos.gns3a +21 -4
- gns3server/appliances/exos.gns3a +13 -151
- gns3server/appliances/fedora-cloud.gns3a +12 -42
- gns3server/appliances/fortianalyzer.gns3a +42 -0
- gns3server/appliances/fortigate.gns3a +56 -0
- gns3server/appliances/fortimanager.gns3a +43 -1
- gns3server/appliances/freebsd.gns3a +17 -2
- gns3server/appliances/huawei-ne40e.gns3a +51 -2
- gns3server/appliances/mikrotik-chr.gns3a +9 -0
- gns3server/appliances/mikrotik-rb1100ahx4-dude-edition.gns3a +1 -1
- gns3server/appliances/mikrotik-rb450g.gns3a +1 -1
- gns3server/appliances/mikrotik-rb450gx4.gns3a +1 -1
- gns3server/appliances/open-media-vault.gns3a +16 -0
- gns3server/appliances/opnsense.gns3a +13 -0
- gns3server/appliances/ostinato.gns3a +13 -0
- gns3server/appliances/rhel.gns3a +17 -3
- gns3server/appliances/rockylinux.gns3a +30 -0
- gns3server/appliances/ubuntu-cloud.gns3a +5 -5
- gns3server/compute/docker/__init__.py +2 -2
- gns3server/compute/docker/docker_vm.py +12 -3
- gns3server/compute/dynamips/__init__.py +3 -0
- gns3server/compute/dynamips/nodes/router.py +1 -1
- gns3server/compute/qemu/__init__.py +10 -3
- gns3server/compute/qemu/qemu_vm.py +7 -1
- gns3server/compute/vpcs/vpcs_vm.py +3 -0
- gns3server/controller/__init__.py +6 -6
- gns3server/controller/export_project.py +5 -0
- gns3server/controller/import_project.py +5 -2
- gns3server/controller/project.py +19 -5
- gns3server/crash_report.py +1 -1
- gns3server/db/models/templates.py +2 -2
- gns3server/db_migrations/README +1 -0
- gns3server/main.py +5 -1
- gns3server/schemas/compute/docker_nodes.py +1 -1
- gns3server/schemas/controller/templates/docker_templates.py +1 -1
- gns3server/server.py +3 -4
- gns3server/services/authentication.py +5 -5
- gns3server/static/web-ui/3rdpartylicenses.txt +23 -0
- gns3server/static/web-ui/index.html +1 -1
- gns3server/static/web-ui/main.8e8e3d55e78d84fc.js +1 -0
- gns3server/static/web-ui/runtime.24fa95b7061d7056.js +1 -0
- gns3server/utils/asyncio/telnet_server.py +17 -4
- gns3server/version.py +1 -1
- gns3server/static/web-ui/main.5699f8c67ccc8359.js +0 -1
- gns3server/static/web-ui/runtime.53e0b4d68251ad21.js +0 -1
- {gns3_server-3.0.0a6.dist-info → gns3_server-3.0.0b2.dist-info}/LICENSE +0 -0
- {gns3_server-3.0.0a6.dist-info → gns3_server-3.0.0b2.dist-info}/entry_points.txt +0 -0
- {gns3_server-3.0.0a6.dist-info → gns3_server-3.0.0b2.dist-info}/top_level.txt +0 -0
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
from jose import JWTError, jwt
|
|
19
19
|
from datetime import datetime, timedelta
|
|
20
|
-
|
|
20
|
+
import bcrypt
|
|
21
21
|
|
|
22
22
|
from typing import Optional
|
|
23
23
|
from fastapi import HTTPException, status
|
|
@@ -29,8 +29,6 @@ import logging
|
|
|
29
29
|
|
|
30
30
|
log = logging.getLogger(__name__)
|
|
31
31
|
|
|
32
|
-
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
|
|
33
|
-
|
|
34
32
|
DEFAULT_JWT_SECRET_KEY = "efd08eccec3bd0a1be2e086670e5efa90969c68d07e072d7354a76cea5e33d4e"
|
|
35
33
|
|
|
36
34
|
|
|
@@ -38,11 +36,13 @@ class AuthService:
|
|
|
38
36
|
|
|
39
37
|
def hash_password(self, password: str) -> str:
|
|
40
38
|
|
|
41
|
-
|
|
39
|
+
salt = bcrypt.gensalt()
|
|
40
|
+
hashed_password = bcrypt.hashpw(password=password.encode('utf-8'), salt=salt)
|
|
41
|
+
return hashed_password.decode('utf-8')
|
|
42
42
|
|
|
43
43
|
def verify_password(self, password, hashed_password) -> bool:
|
|
44
44
|
|
|
45
|
-
return
|
|
45
|
+
return bcrypt.checkpw(password=password.encode('utf-8'), hashed_password=hashed_password.encode('utf-8'))
|
|
46
46
|
|
|
47
47
|
def create_access_token(self, username, secret_key: str = None, expires_in: int = 0) -> str:
|
|
48
48
|
|
|
@@ -1493,6 +1493,29 @@ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
1493
1493
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1494
1494
|
|
|
1495
1495
|
|
|
1496
|
+
ipaddr.js
|
|
1497
|
+
MIT
|
|
1498
|
+
Copyright (C) 2011-2017 whitequark <whitequark@whitequark.org>
|
|
1499
|
+
|
|
1500
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1501
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
1502
|
+
in the Software without restriction, including without limitation the rights
|
|
1503
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1504
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
1505
|
+
furnished to do so, subject to the following conditions:
|
|
1506
|
+
|
|
1507
|
+
The above copyright notice and this permission notice shall be included in
|
|
1508
|
+
all copies or substantial portions of the Software.
|
|
1509
|
+
|
|
1510
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1511
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1512
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1513
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1514
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1515
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1516
|
+
THE SOFTWARE.
|
|
1517
|
+
|
|
1518
|
+
|
|
1496
1519
|
marked
|
|
1497
1520
|
MIT
|
|
1498
1521
|
# License information
|
|
@@ -46,6 +46,6 @@
|
|
|
46
46
|
|
|
47
47
|
gtag('config', 'G-5D6FZL9923');
|
|
48
48
|
</script>
|
|
49
|
-
<script src="runtime.
|
|
49
|
+
<script src="runtime.24fa95b7061d7056.js" type="module"></script><script src="polyfills.319c79dd175e50d0.js" type="module"></script><script src="main.8e8e3d55e78d84fc.js" type="module"></script>
|
|
50
50
|
|
|
51
51
|
</body></html>
|