Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/service/auth_svc.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
except (ValueError, TypeError):
max_age = None
try:
if os.path.exists(os.path.join('data', cookie_file)):
if os.path.exists(cookie_path):
secret_key = file_svc._read(cookie_path)
self.log.debug('Loaded persistent session key from data/cookie_storage')
else:
Expand Down Expand Up @@ -190,7 +190,7 @@
except (HTTPUnauthorized, HTTPForbidden):
return await self.login_redirect(request, use_template=False)

async def get_permissions(self, request):

Check failure on line 193 in app/service/auth_svc.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Refactor this function to always return tuples of the same length.

See more on https://sonarcloud.io/project/issues?id=mitre_caldera&issues=AZ2I2yaFRIAoJb6q5s4V&open=AZ2I2yaFRIAoJb6q5s4V&pullRequest=3355
identity_policy = request.config_dict.get('aiohttp_security_identity_policy')
identity = await identity_policy.identify(request)
if identity in self.user_map:
Expand Down
1 change: 1 addition & 0 deletions app/service/data_svc.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
'data/results/*',
'data/sources/*',
'data/object_store',
'data/cookie_storage',
)

PAYLOADS_CONFIG_STANDARD_KEY = 'standard_payloads'
Expand Down
Loading