Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
django-cas-server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Samir
django-cas-server
Commits
cd4b9846
Commit
cd4b9846
authored
Dec 13, 2015
by
Valentin Samir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a timeout to SLO requests
parent
bfad2652
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
0 deletions
+4
-0
README.rst
README.rst
+1
-0
cas_server/default_settings.py
cas_server/default_settings.py
+2
-0
cas_server/models.py
cas_server/models.py
+1
-0
No files found.
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
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