From 7ce83ea72f9d3635d1364a1afc2e5d1e02b884fe Mon Sep 17 00:00:00 2001 From: Pedro Z Date: Thu, 18 Dec 2025 09:21:03 +0100 Subject: [PATCH 1/3] pass full redirect URL --- R/oauth-flow-auth-code.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/oauth-flow-auth-code.R b/R/oauth-flow-auth-code.R index 885b0346..4d5bb0ce 100644 --- a/R/oauth-flow-auth-code.R +++ b/R/oauth-flow-auth-code.R @@ -183,7 +183,7 @@ oauth_flow_auth_code <- function( client, grant_type = "authorization_code", code = code, - redirect_uri = redirect_uri, + redirect_uri = redirect$uri, !!!token_params ) } From e2dfe1233d875d42e6590e9ae983f87c6a0301e3 Mon Sep 17 00:00:00 2001 From: Pedro Z Date: Thu, 12 Feb 2026 09:22:48 +0100 Subject: [PATCH 2/3] Update NEWS.md --- NEWS.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NEWS.md b/NEWS.md index db15ae62..61e18800 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,7 @@ # httr2 (development version) +* * `oauth_flow_auth_code()` now correctly uses the same redirect URI for both authorization and token requests when using the default localhost redirect URL (@pedrobtz, #829). + * `last_response_json()` now works with content-types that end with `+json`, e.g., `application/problem+json` (@cgiachalis, #782). From 442966069672cea40315daafb7dc9bf7d79b2f26 Mon Sep 17 00:00:00 2001 From: Pedro Z Date: Thu, 12 Feb 2026 09:23:16 +0100 Subject: [PATCH 3/3] Update NEWS.md --- NEWS.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index 61e18800..5403f96e 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,7 +1,6 @@ # httr2 (development version) -* * `oauth_flow_auth_code()` now correctly uses the same redirect URI for both authorization and token requests when using the default localhost redirect URL (@pedrobtz, #829). - +* `oauth_flow_auth_code()` now correctly uses the same redirect URI for both authorization and token requests when using the default localhost redirect URL (@pedrobtz, #829). * `last_response_json()` now works with content-types that end with `+json`, e.g., `application/problem+json` (@cgiachalis, #782).