Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SMART
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UNI-KLU
SMART
Commits
78d74fc2
Commit
78d74fc2
authored
Sep 02, 2020
by
Manuel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed TokenManager
parent
1d8d00f3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
token_manager.py
src/modules/security/token_manager.py
+3
-2
No files found.
src/modules/security/token_manager.py
View file @
78d74fc2
# global import, red is normal don't worry
# global import, red is normal don't worry
import
network_constants
import
network_constants
from
env_info
import
is_running_locally
import
os
import
os
import
json
import
json
...
@@ -21,9 +22,9 @@ class TokenManager:
...
@@ -21,9 +22,9 @@ class TokenManager:
def
getToken
(
self
)
->
str
:
def
getToken
(
self
)
->
str
:
if
self
.
_token
==
None
:
if
self
.
_token
==
None
:
try
:
if
is_running_locally
()
:
credentials_path
=
'../../../modules/security/'
credentials_path
=
'../../../modules/security/'
e
xcept
KeyError
:
e
lse
:
credentials_path
=
'/srv/articonf/'
credentials_path
=
'/srv/articonf/'
print
(
"Looking for credentials at ... "
+
str
(
credentials_path
))
print
(
"Looking for credentials at ... "
+
str
(
credentials_path
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment