can you describe what behavior you're seeing? if you want to fetch and use the token directly you should be able to do that after injecting the credentials as env_vars in your flyte task pods like we discussed in your earlier
question.
alternatively, you can look into setting up an
Azure Workload Identity if you're in AKS and the azure ecosystem; it takes a little bit to setup but is generally more flexible and secure than managing creds directly in code. e.g., once you have the credential injected into the k8 pod you can just use
credential=DefaultAzureCredential()
in python