Azure / Microsoft365R

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

Cannot launch Microsoft 365 from RSW #135

Closed yacaslimi closed 1 year ago

yacaslimi commented 1 year ago

Hello,

I'm working on RSW. I've downloaded and installed Microsoft365R. I tried to use the get_business_outlook function.

library(Microsoft365R) my_outlook <- get_business_outlook()

image

When I'm launching it, I get a pop-up with the selection of my Microsoft account, and finally, get a new tab with the following URL image

As I'm working on the server, the link is not functional. I'm wondering how to modify the parameters of the function/RSW to be able to launch that page on the server.

Osteribo commented 1 year ago

Having the same issue. I have been using the package for a while and this has not been an issue before.

hongooi73 commented 1 year ago

I'm not familiar with RSW. You should ask this on the RStudio community forums, or contact RStudio's tech support directly, as this doesn't seem to be a bug in Microsoft365R as such.

hongooi73 commented 1 year ago

Late comment: RSW is a remote server, so you have to authenticate using the device_code flow. Like this:

get_business_outlook(auth_type="device_code")

See ?get_business_outlook, in particular the 2nd paragraph under "Details".