Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
bad68f8b
Commit
bad68f8b
authored
Sep 01, 2017
by
bmedx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add default OAUTH_DELETE_EXPIRED to LMS settings
parent
6f30dedb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
lms/envs/aws.py
+1
-1
lms/envs/common.py
+2
-1
No files found.
lms/envs/aws.py
View file @
bad68f8b
...
...
@@ -724,7 +724,7 @@ if FEATURES.get('ENABLE_OAUTH2_PROVIDER'):
days
=
ENV_TOKENS
.
get
(
'OAUTH_EXPIRE_PUBLIC_CLIENT_DAYS'
,
OAUTH_EXPIRE_PUBLIC_CLIENT_DAYS
)
)
OAUTH_ID_TOKEN_EXPIRATION
=
ENV_TOKENS
.
get
(
'OAUTH_ID_TOKEN_EXPIRATION'
,
OAUTH_ID_TOKEN_EXPIRATION
)
OAUTH_DELETE_EXPIRED
=
ENV_TOKENS
.
get
(
'OAUTH_DELETE_EXPIRED'
,
OAUTH_DELETE_EXPIRED
)
##### ADVANCED_SECURITY_CONFIG #####
ADVANCED_SECURITY_CONFIG
=
ENV_TOKENS
.
get
(
'ADVANCED_SECURITY_CONFIG'
,
{})
...
...
lms/envs/common.py
View file @
bad68f8b
...
...
@@ -2878,7 +2878,8 @@ COURSE_ABOUT_VISIBILITY_PERMISSION = 'see_exists'
# Enrollment API Cache Timeout
ENROLLMENT_COURSE_DETAILS_CACHE_TIMEOUT
=
60
# Automatically clean up edx-django-oauth2-provider tokens on use
OAUTH_DELETE_EXPIRED
=
True
OAUTH_ID_TOKEN_EXPIRATION
=
60
*
60
# These tabs are currently disabled
...
...
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