If I read the post correctly, you were trying to get an registered dataset within a submitted run. There, Workspace.from_config() won't work since there is no config.json file as the error suggested.
And when you created an auth object which is InteractiveLoginAuth, it is expected to perform interactive login.
Within a run the recommended way to connect to current workspace it via:
from azureml.core import Run
run = Run.get_context().experiment.workspace
Meanwhile, there is way to pass in an dataset object to a run without involving register and workspace signin. If that fit your scenario better, please refer to the example in this document https://video2.skills-academy.com/en-us/azure/machine-learning/how-to-train-with-datasets#access-and-explore-input-datasets
from azureml.core import Dataset, Run
run = Run.get_context()
# get the input dataset by name
dataset = run.input_datasets['titanic']
# load the TabularDataset to pandas DataFrame
df = dataset.to_pandas_dataframe()