(www/R-gargle) Updated 1.4.0 to 1.5.0
# gargle 1.5.0 * gargle's existing unexported `secret_*()` functions are deprecated, in favor of new, exported `secret_*()` functions that are built on or inlined from httr2. The `vignette("managing-tokens-securely")` is updated to reflect the new, recommended strategy for encrypting secrets. - `secret_encrypt_json()` / `secret_decrypt_json()` are new gargle-specific functions. - `secret_write_rds()` / `secret_read_rds()`, `secret_make_key()`, and `secret_had_key()` are basically copies of their httr2 counterparts. - Legacy functions to move away from: `secret_pw_name()`, `secret_pw_gen()`, `secret_pw_exists()`, `secret_pw_get()`, `secret_can_decypt()`, `secret_read()`, `secret_write()`. - The new approach makes it much easier to use gargle functions to encrypt and decrypt credentials in a project that is *not* necessarily an R package. * The transition from OAuth "app" to OAuth "client" is fully enacted now. This process tarted in v1.3.0, when the `"gargle_oauth_client"` class was introduced, to support the new pseudo-OOB auth flow. The deprecations are implemented to preserve backwards compatibility for some time. In this release, function, argument, and field names are all updated to the "client" terminology: - `init_AuthState(client =)` instead of `init_AuthState(app =)` - `AuthState$client` instead of `AuthState$app` - `AuthState$set_client()` instead of `AuthState$set_app()` - `gargle2.0_token(client =)` instead of `gargle2.0_token(app =)` - `credentials_user_oauth2(client =)` instead of `credentials_user_oauth2(app =)` A new `vignette("oauth-client-not-app")` explains how a wrapper package should adapt. * When the `"gargle_verbosity"` option is set to `"debug"`, there are more debugging messages around user credentials. Specifically, more information is available on the email, OAuth client, and scopes, with the goal of better understanding why a cached token is (or is not) being used. * `check_is_service_account()` is a new function for use in wrapper packages to throw a more informative error when a user provides JSON for an OAuth client to an argument that is expecting JSON for a service account. * `response_process()` has improved handling of responses that represent an HTTP error with HTML content (as opposed to the expected and preferred JSON) (#254). * `response_process(call = caller_env())` is a new argument that is passed along to various helpers, which can improve error reporting for user-facing functions that call `response_process()` (#255).
This commit is contained in:
parent
4e69ea58b8
commit
6e1061949a
2 changed files with 6 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
# $NetBSD: Makefile,v 1.4 2023/06/15 07:03:56 mef Exp $
|
||||
# $NetBSD: Makefile,v 1.5 2023/06/17 12:17:14 mef Exp $
|
||||
|
||||
R_PKGNAME= gargle
|
||||
R_PKGVER= 1.4.0
|
||||
R_PKGVER= 1.5.0
|
||||
CATEGORIES= www
|
||||
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
$NetBSD: distinfo,v 1.2 2023/06/11 15:15:44 mef Exp $
|
||||
$NetBSD: distinfo,v 1.3 2023/06/17 12:17:14 mef Exp $
|
||||
|
||||
BLAKE2s (R/gargle_1.4.0.tar.gz) = a7a7d4e61c0422952fd973abcaf64025f6e27ce78e23de72d4c9fd8d3d13ba51
|
||||
SHA512 (R/gargle_1.4.0.tar.gz) = 27c1a956e5c64df11c738c5848a76684c4320823a23c9df1de39414f5be59fe0f035ce2219885781cf63ce60f0ff4dc7a6cda6e427d0fbaec6930754df8f228e
|
||||
Size (R/gargle_1.4.0.tar.gz) = 597755 bytes
|
||||
BLAKE2s (R/gargle_1.5.0.tar.gz) = efbd7712d3e4f9833025f848f6f09aca3462aae58a5d515a6fdd8fae579a56eb
|
||||
SHA512 (R/gargle_1.5.0.tar.gz) = 63c49186bb96da76bcdcc38a5bb034d26b7ba56c103fb8cbc8c6217559136cde62f8b02aa8af3f6186cf54de5cafc1a028e78ff5682c5c82e062208bfc0844a6
|
||||
Size (R/gargle_1.5.0.tar.gz) = 626311 bytes
|
||||
|
|
Loading…
Reference in a new issue