OAuth: support for auto_even_if_expired REQUEST_APPROVAL_PROMPT

This commit is contained in:
Nimisha Asthagiri
2018-01-12 05:01:04 -05:00
parent a459daadb6
commit ea041700f6
6 changed files with 166 additions and 4 deletions

View File

@@ -521,7 +521,7 @@ OAUTH_EXPIRE_PUBLIC_CLIENT_DAYS = 30
################################## DJANGO OAUTH TOOLKIT #######################################
OAUTH2_PROVIDER = {
'OAUTH2_VALIDATOR_CLASS': 'openedx.core.djangoapps.oauth_dispatch.dot_overrides.EdxOAuth2Validator',
'OAUTH2_VALIDATOR_CLASS': 'openedx.core.djangoapps.oauth_dispatch.dot_overrides.validators.EdxOAuth2Validator',
'REFRESH_TOKEN_EXPIRE_SECONDS': 20160,
'SCOPES': {
'read': 'Read access',
@@ -531,6 +531,7 @@ OAUTH2_PROVIDER = {
# to lms/templates/provider/authorize.html. This may be revised later.
'profile': 'Know your name and username',
},
'REQUEST_APPROVAL_PROMPT': 'auto_even_if_expired',
}
# This is required for the migrations in oauth_dispatch.models
# otherwise it fails saying this attribute is not present in Settings