r-lib / httr

httr: a friendly http package for R
https://httr.r-lib.org
Other
988 stars 1.99k forks source link

oauth2.0_token with client_credentials = TRUE ignores scope parameter #660

Closed pragmasoft-ua closed 1 year ago

pragmasoft-ua commented 4 years ago

When I use oauth2.0_token with client_credentials = TRUE, httr does not post scope to the token endpoint

token <- oauth2.0_token(okta, app,
  scope = "admin client",
  client_credentials = TRUE
)

I was able to fix the problem with user_params

token <- oauth2.0_token(okta, app,
  user_params = list(scope = "admin client"),
  client_credentials = TRUE
)
hadley commented 1 year ago

httr has been superseded in favour of httr2, so is no longer under active development. If this problem is still important to you in httr2, I'd suggest filing an issue offer there 😄 — but OAuth support is much more robust in httr2 so it's quite likely this is already fixed there. Thanks for using httr!