def METHOD_NAME(self, client_id, scopes, client, request, *args, **kwargs):
    """
    Ensure required scopes are permitted (as specified in the settings file)
    """
    available_scopes = get_scopes_backend().get_available_scopes(application=client, request=request)
    return set(scopes).issubset(set(available_scopes))