Azure / Microsoft365R

R SDK for interacting with Microsoft 365 APIs
Other
313 stars 44 forks source link

Specify a proxy inside the authentification functions #70

Closed feddelegrand7 closed 3 years ago

feddelegrand7 commented 3 years ago

Hi,

Thank you for the great package. I'm trying to use it inside my working environment, the IT has set up a proxy for me which works for a URL however when I run the function Microsoft365R::get_business_onedrive(auth_type = "device_code") I receive the following error:

Creating Microsoft Graph login for default tenant
 Error in curl::curl_fetch_memory(url, handle = handle) : 
  Received HTTP code 403 from proxy after CONNECT 

Any idea on how to incorporate the proxy options inside the function?

Thanks in advance. Fodil.

feddelegrand7 commented 3 years ago

Ah sorry, using a global variable (http_proxy and https_proxy) fixed the issue