roadrecon 1.5.0__py3-none-any.whl → 1.6.0__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.
- {roadrecon-1.5.0.dist-info → roadrecon-1.6.0.dist-info}/METADATA +6 -6
- {roadrecon-1.5.0.dist-info → roadrecon-1.6.0.dist-info}/RECORD +9 -9
- {roadrecon-1.5.0.dist-info → roadrecon-1.6.0.dist-info}/WHEEL +1 -1
- roadtools/roadrecon/dist_gui/index.html +3 -3
- roadtools/roadrecon/dist_gui/{main.9eac9b8f6864a9cc.js → main.007348bcb2c0fb0b.js} +1 -1
- roadtools/roadrecon/gather.py +5 -1
- roadtools/roadrecon/server.py +3 -2
- {roadrecon-1.5.0.dist-info → roadrecon-1.6.0.dist-info}/entry_points.txt +0 -0
- {roadrecon-1.5.0.dist-info → roadrecon-1.6.0.dist-info}/top_level.txt +0 -0
roadtools/roadrecon/gather.py
CHANGED
|
@@ -25,6 +25,7 @@ from roadtools.roadlib.metadef.database import (
|
|
|
25
25
|
from sqlalchemy import bindparam, func, text
|
|
26
26
|
from sqlalchemy.dialects.postgresql import insert as pginsert
|
|
27
27
|
from sqlalchemy.orm import sessionmaker
|
|
28
|
+
from datetime import datetime
|
|
28
29
|
|
|
29
30
|
warnings.simplefilter('ignore')
|
|
30
31
|
token = None
|
|
@@ -124,11 +125,14 @@ def checktoken():
|
|
|
124
125
|
auth.tokendata = token
|
|
125
126
|
if 'useragent' in token:
|
|
126
127
|
auth.set_user_agent(token['useragent'])
|
|
128
|
+
if 'originheader' in token:
|
|
129
|
+
auth.set_origin_value(token['originheader'])
|
|
127
130
|
if 'refreshToken' in token:
|
|
131
|
+
print("- Attempting token refresh -")
|
|
128
132
|
token = auth.authenticate_with_refresh(token)
|
|
129
133
|
headers['Authorization'] = '%s %s' % (token['tokenType'], token['accessToken'])
|
|
130
134
|
expiretime = time.time() + token['expiresIn']
|
|
131
|
-
print('Refreshed token')
|
|
135
|
+
print('+ Refreshed token +')
|
|
132
136
|
return True
|
|
133
137
|
elif time.time() > expiretime:
|
|
134
138
|
print('Access token is expired, but no access to refresh token! Dumping will fail')
|
roadtools/roadrecon/server.py
CHANGED
|
@@ -41,7 +41,7 @@ class RTModelSchema(ma.SQLAlchemyAutoSchema):
|
|
|
41
41
|
class UsersSchema(ma.Schema):
|
|
42
42
|
class Meta:
|
|
43
43
|
model = User
|
|
44
|
-
fields = ('objectId', 'objectType', 'userPrincipalName', 'displayName', 'mail', 'lastDirSyncTime', 'accountEnabled', 'department', 'lastPasswordChangeDateTime', 'jobTitle', 'mobile', 'dirSyncEnabled', 'strongAuthenticationDetail', 'userType')
|
|
44
|
+
fields = ('objectId', 'objectType', 'userPrincipalName', 'displayName', 'mail', 'lastDirSyncTime', 'accountEnabled', 'department', 'lastPasswordChangeDateTime', 'jobTitle', 'mobile', 'dirSyncEnabled', 'strongAuthenticationDetail', 'userType', 'searchableDeviceKey')
|
|
45
45
|
|
|
46
46
|
class DevicesSchema(ma.Schema):
|
|
47
47
|
class Meta:
|
|
@@ -323,7 +323,8 @@ def get_mfa():
|
|
|
323
323
|
'has_app': has_app,
|
|
324
324
|
'has_phonenr': has_phonenr,
|
|
325
325
|
'has_fido': has_fido,
|
|
326
|
-
'strongAuthenticationDetail': user.strongAuthenticationDetail
|
|
326
|
+
'strongAuthenticationDetail': user.strongAuthenticationDetail,
|
|
327
|
+
'searchableDeviceKey': user.searchableDeviceKey
|
|
327
328
|
})
|
|
328
329
|
return jsonify(out)
|
|
329
330
|
|
|
File without changes
|
|
File without changes
|