Open-EO / openeo-r-client

R client package for working with openEO backends
https://open-eo.github.io/openeo-r-client
Apache License 2.0
61 stars 17 forks source link

Device Code Auth with Jupyter and httr2 #119

Closed m-mohr closed 2 years ago

m-mohr commented 2 years ago

Wraps the httr2 device_code flow calls with with_interactive and sets interactive mode for Jupyter to True, otherwise keeps it as is. Does this also make sense to you, @flahn? Tested with RStudio and JupyterLab.

Fixes #95 (and #118)

flahn commented 2 years ago

At a first glimpse, it looks quite good, thanks. I will need to check further. Initially I thought to set the interactive mode globally, but thinking more about it, your solution makes more sense. The interactive mode just needs to be "on", when we need user interaction and this should just be at the login phase.