httr2 icon indicating copy to clipboard operation
httr2 copied to clipboard

`oauth_client_get_token` uses default User Agent

Open jl5000 opened this issue 2 years ago • 4 comments

I'm seeing that when a client is registered it seemed to be using the default user agent string instead of the custom one I had defined. I think I've traced it back to the oauth_client_get_token() function which posts data to the token_url without using the same User Agent string.

jl5000 avatar Jun 17 '22 13:06 jl5000

Could you provide a simple reprex? Just so I get a sense of what you're doing.

hadley avatar Sep 17 '22 14:09 hadley

I'd be happy to but there are two blockers which I can't see a way around:

  1. The function does not take the user agent as an argument
  2. The function creates a request and processes the response in one go

jl5000 avatar Sep 25 '22 21:09 jl5000

In that case, could you do a PR?

hadley avatar Sep 26 '22 11:09 hadley

I don't think I know how for this one.

jl5000 avatar Oct 13 '22 13:10 jl5000

Closing since I don't understand what you want 😄

hadley avatar May 09 '23 22:05 hadley