fix: add toggle_target_removal_date annotation

This commit is contained in:
Ehmad Saeed
2024-03-16 02:47:48 +05:00
parent c48fbb9b48
commit de6047184f

View File

@@ -106,8 +106,9 @@ class EdxOAuth2Validator(OAuth2Validator):
# .. toggle_default: False
# .. toggle_use_cases: temporary
# .. toggle_creation_date: 2024-03-16
# .. toggle_target_removal_date: 2024-04-16
# .. toggle_warnings: This feature flag is temporary and will be removed once the feature is fully tested.
# .. toggle_ticket: https://github.com/openedx/edx-platform/issues/34381 (toggle removal ticket)
# .. toggle_tickets: https://github.com/openedx/edx-platform/issues/34381 (toggle removal ticket)
if settings.FEATURES.get('ENABLE_USER_ID_SCOPE', False):
if request.grant_type == 'client_credentials' and not request.scopes:
if get_scopes_backend().has_user_id_in_application_scopes(application=request.client):