Azure / Microsoft365R

R SDK for interacting with Microsoft 365 APIs
Other
308 stars 41 forks source link

Local Host Can't be reached when attempting to use get_sharepoint_site() from Rstudio Server #181

Closed AlexHakansson closed 11 months ago

AlexHakansson commented 11 months ago

image

Hello, I am attempting to use the get_sharepoint_site() from my rstudio server. I can run it locally but when I try to run it from the server I get localhost refused to connect. I have seen some things online about going to "Azure Active Directory" to get a token but I personally don't have access to this. Is there a way to use get_sharepoint_site() from the RStudio server without using Azure Active Directory?

hongooi73 commented 11 months ago

See the "Authentication" vignette; you have to use the device code auth flow when running on RStudio Server.

get_sharepoint_site("site", ..., auth_type="device_code")

In general, support questions should be asked somewhere else, like Stackoverflow or the RStudio/Posit forums. Issues should be for reporting bugs or making feature requests.

AlexHakansson commented 11 months ago

Thanks this was helpful!