You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Somewhere along the way, the development version of httr2 seems to have broken authentication with twitter and oauth2. This is possibly related to #316.
ID <- "XXX"
SECRET <- "YYYY"
client <- httr2::oauth_client(
id = ID,
secret = SECRET,
token_url = "https://api.twitter.com/2/oauth2/token",
auth = "header",
name = "rtweet")
# most recent commit: does not work
remove.packages("httr2")
remotes::install_github("r-lib/httr2@8f77d4145a7d887e7f30c449f28cda150a61d744")
token <- httr2::oauth_flow_auth_code(client,
auth_url = "https://twitter.com/i/oauth2/authorize",
pkce = TRUE,
scope = "tweet.write",
host_name = "127.0.0.1", port = 1410 # also does not work: redirect_uri = "http://127.0.0.1:1410/"
)
[R Console] Enter authorization code:
[Browser after clicking confirm] This site can’t be reached 127.0.0.1 refused to connect. ERR_CONNECTION_REFUSED
# july 12 commit: does work
remove.packages("httr2")
remotes::install_github("r-lib/httr2@7f795cd4ae688ad71c445b8b3225e1a65fdf6b0a")
token <- httr2::oauth_flow_auth_code(client,
auth_url = "https://twitter.com/i/oauth2/authorize",
pkce = TRUE,
scope = "tweet.write",
host_name = "127.0.0.1",
port = 1410
)
[R Console] Waiting for authentication in browser...
[Browser after clicking confirm] Authentication complete. Please close this page and return to R.
The behavior is identical through launching the browser (i.e., they both open the same browser to the same URL, aside from state/code challenge), but something is going wrong after clicking confirm in the new version. The behavior is identical in both chrome and edge.
The text was updated successfully, but these errors were encountered:
Somewhere along the way, the development version of httr2 seems to have broken authentication with twitter and oauth2. This is possibly related to #316.
The behavior is identical through launching the browser (i.e., they both open the same browser to the same URL, aside from state/code challenge), but something is going wrong after clicking confirm in the new version. The behavior is identical in both chrome and edge.
The text was updated successfully, but these errors were encountered: