r-lib / gmailr

Access the Gmail RESTful API from R.
https://gmailr.r-lib.org
Other
229 stars 56 forks source link

WIP gmailr authenticating with gargle #113

Closed jimhester closed 5 years ago

jimhester commented 5 years ago

@jennybc you don't need to review this yet, sorry about the auto-triggered review.

jimhester commented 5 years ago

With some cursory testing this now seems to work.

gm_auth_configure(httr::oauth_app("gmailr", key = "my_key", secret = "my_secret"))
gmailr::messages()
# I am then prompted to do the oauth dance

The auth consent screen gives you a scary this app not authorized message, but I don't think there is anything we can do about that?

jennybc commented 5 years ago

The auth consent screen gives you a scary this app not authorized message, but I don't think there is anything we can do about that?

Correct. I think this comes with the territory now. I suspect there are combinations of who owns the (GCP project that owns the) app and the domain of the user where this screen might be less scary.

jimhester commented 5 years ago

Thanks for reviewing!