Azure/AzureAuth

Turn off prompt: The AzureR packages can save your authentication credentials in the directory

feddelegrand7 opened this issue · 1 comments

Hi,

Thank you for the great package. There's an issue that I'm encountering, though. I'm using the package as a dependency for my local package. All the functions from Microsoft365R that I use are triggered using a Token (not need to log in or provide any credential). It works great, however each time I load the Microsoft365R package, I'm prompted by this message:

The AzureR packages can save your authentication credentials in the directory:

~/.local/share/AzureR

This saves you having to re-authenticate with Azure in future sessions. Create this directory? (Yes/no/cancel) 

The prompt also appears when I test my package (even if the tests are not related to the Microsoft package). I don't want to save the authentication credentials as I don't need them. Any possibility to turn off this prompt?

Thank you again,
Best,
Fodil

Not the prettiest solution, but I got around this by making sure that the AzureR folder is already present. The AzureAuth code only produces this prompt if that directory does not yet exist.