Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OSUG
RESIF
ws-eidaauth
Commits
b090dc9d
Commit
b090dc9d
authored
Aug 06, 2020
by
Jonathan Schaeffer
Browse files
Details
parent
6b851367
Changes
1
Hide whitespace changes
Inline
Side-by-side
eidawsauth/eidawsauth.py
View file @
b090dc9d
...
...
@@ -20,12 +20,9 @@ else:
# Loglevel can be overrinden by LOGLEVEL env var :
if
os
.
getenv
(
'DEBUG'
)
==
'true'
:
application
.
logger
.
setLevel
(
logging
.
DEBUG
)
else
:
application
.
logger
.
setLevel
(
logging
.
INFO
)
application
.
config
.
from_object
(
Configurator
)
def
wsshash
(
login
,
password
):
"""
Compute a hash suitable for the IRIS wss stack.
...
...
@@ -228,7 +225,7 @@ def auth():
register_privileges
(
login
,
tokendict
)
return
"%s:%s"
%
(
login
,
password
)
else
:
return
Response
(
'
Internal server error. Contact
resif-dc@univ-grenoble-alpes.fr'
,
status
=
500
)
return
Response
(
"
Internal server error. Contact
%s"
%
(
application
.
config
[
'SUPPORT_EMAIL'
])
,
status
=
500
)
if
__name__
==
"__main__"
:
application
.
logger
.
info
(
"Running in %s mode"
%
(
application
.
config
[
'ENVIRONMENT'
]))
...
...
Write
Preview
Supports
Markdown
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