def METHOD_NAME(self, validated_data):
    """Force the file depository field to the file depository of the JWT Token if any,
    and set the author name to the username of the JWT Token if any.
    Parameters
    ----------
    validated_data : dictionary
        Dictionary of the deserialized values of each field after validation.
    Returns
    -------
    dictionary
        The "validated_data" dictionary is returned after modification.
    """
    resource = self.context["request"].resource
    user = self.context["request"].user
    file_depository_id = self.context["view"].get_related_filedepository_id()
    if not validated_data.get("file_depository_id"):
        validated_data["file_depository_id"] = file_depository_id
    if resource:
        validated_data["author_id"] = resource.user.get("id")
        # try to get the most useful username from the token
        if resource.user:
            if author_name := (
                resource.user.get("user_fullname") or resource.user.get("username")
            ):
                validated_data["author_name"] = author_name
    else:
        validated_data["author_id"] = user.id
        validated_data["author_name"] = User.objects.get(id=user.id).username
    return super().METHOD_NAME(validated_data)