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
Valentin Samir
django-cas-server
Commits
cd4b9846
Commit
cd4b9846
authored
Dec 13, 2015
by
Valentin Samir
Browse files
Add a timeout to SLO requests
parent
bfad2652
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.rst
View file @
cd4b9846
...
...
@@ -99,6 +99,7 @@ Authentication settings:
* ``CAS_SLO_MAX_PARALLEL_REQUESTS``: Maximum number of parallel single log out requests send.
If more requests need to be send, there are queued. The default is ``10``.
* ``CAS_SLO_TIMEOUT``: Timeout for a single SLO request in seconds. The default is ``5``.
Tickets validity settings:
...
...
cas_server/default_settings.py
View file @
cd4b9846
...
...
@@ -59,6 +59,8 @@ setting_default('CAS_PROXY_GRANTING_TICKET_IOU_PREFIX', 'PGTIOU')
# Maximum number of parallel single log out requests send
# if more requests need to be send, there are queued
setting_default
(
'CAS_SLO_MAX_PARALLEL_REQUESTS'
,
10
)
# SLO request timeout.
setting_default
(
'CAS_SLO_TIMEOUT'
,
5
)
setting_default
(
'CAS_SQL_HOST'
,
'localhost'
)
setting_default
(
'CAS_SQL_USERNAME'
,
''
)
...
...
cas_server/models.py
View file @
cd4b9846
...
...
@@ -405,6 +405,7 @@ class Ticket(models.Model):
session
.
post
(
url
.
encode
(
'utf-8'
),
data
=
{
'logoutRequest'
:
xml
.
encode
(
'utf-8'
)},
timeout
=
settings
.
CAS_SLO_TIMEOUT
)
)
except
Exception
as
error
:
...
...
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