Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use client= argument in token_fetch() #538

Merged
merged 3 commits into from
Nov 6, 2023
Merged

Conversation

MichaelChirico
Copy link
Contributor

I'm not 100% sure this is correct, but it certainly looks like the right consistency change to follow up 8460e24.

I can only tell that the app= argument is marked deprecated() in credentials_user_oauth2():

https://github.com/r-lib/gargle/blob/202fcaacd1151e9b9881ea154193bb50bd476194/R/credentials_user_oauth2.R#L54

And seemingly ignored in all the other default credentials* functions:

https://github.com/r-lib/gargle/blob/202fcaacd1151e9b9881ea154193bb50bd476194/R/cred_funs.R#L142-L151

But I may be missing something.

@jennybc
Copy link
Collaborator

jennybc commented Jul 7, 2023

Yeah all of the gargle-downstream packages eventually need a second and final adjustment for the "app" to "client" transition.

An example of the heart of such an update is here in googledrive, which I'm noting for the benefit of whoever finishes this off, whether be it @MichaelChirico or me or Hadley:

tidyverse/googledrive@4ddfde6

So the current change in this PR is good, but I'd say there are other changes that would also make sense to do at the same time.

@MichaelChirico
Copy link
Contributor Author

Thanks for the link! Had a go at finding other 'app' usages, I think that covers everything. I searched for (^|[^\w.])app($|[^\w.]) in the whole repo and found these two R files, Rd references to the deprecated arguments, and a NEWS entry discussing deprecation.

@hadley hadley merged commit 99a396e into r-dbi:main Nov 6, 2023
13 checks passed
@hadley
Copy link
Member

hadley commented Nov 6, 2023

Thanks!

1 similar comment
@hadley
Copy link
Member

hadley commented Nov 6, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants