Skip to content

Commit

Permalink
Band not bound, oops
Browse files Browse the repository at this point in the history
  • Loading branch information
jennybc committed Jul 20, 2023
1 parent a00e93a commit 1c82190
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# gargle 1.5.1

* Completed some overlooked, unfinished work around the OAuth "app" to "client"
transition that affected out-of-bound auth (#263, #264).
transition that affected out-of-band auth (#263, #264).

* The `secret_*()` functions are more discoverable via documentation.

Expand Down Expand Up @@ -372,7 +372,7 @@ mockr is new in Suggests, since `testthat::use_mock()` is superseded.

* In a non-interactive context, gargle will use a cached OAuth token, if it discovers (at least) one, even if the user has not given explicit instructions. We emit a recommendation that the user make their intent unambiguous and link to the vignette on non-interactive auth (#92).

* gargle consults the option `"httr_oob_default"`, if the option `"gargle_oob_default"` is unset. This is part of an effort to automatically detect the need for out-of-bound auth in more situations (#102).
* gargle consults the option `"httr_oob_default"`, if the option `"gargle_oob_default"` is unset. This is part of an effort to automatically detect the need for out-of-band auth in more situations (#102).

* `credentials_service_account()` checks explicitly that `type` is `"service_account"`. This makes it easier to detect a common mistake, where the JSON for an OAuth client is provided instead of the JSON representing a service account (#93).

Expand Down
4 changes: 2 additions & 2 deletions vignettes/gargle-auth-in-client-package.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ For example, if they intend to only read data and want to guard against inadvert
drive_auth(scopes = "https://www.googleapis.com/auth/drive.readonly")
```

### OAuth cache and Out-of-bound auth
### OAuth cache and Out-of-band auth

The location of the token cache and whether to prefer out-of-bound auth are two aspects of OAuth where most users are content to go along with sensible default behavior.
The location of the token cache and whether to prefer out-of-band auth are two aspects of OAuth where most users are content to go along with sensible default behavior.
For those who want to exert control, that can be done in direct calls to `drive_auth()` or by configuring an option.
Read the help for `gargle::gargle_oauth_cache()` and `gargle::gargle_oob_default()` and `vignette("auth-from-web")` for more.

Expand Down

0 comments on commit 1c82190

Please sign in to comment.