From a839c2d6f16d1f980292f6b759f8d85f1f3e612b Mon Sep 17 00:00:00 2001 From: HoneyryderChuck Date: Fri, 2 Feb 2024 10:22:11 +0000 Subject: [PATCH] oauth: do not bail out on token endpoint (it's the rest that matters) --- lib/httpx/plugins/oauth.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/httpx/plugins/oauth.rb b/lib/httpx/plugins/oauth.rb index 1f0cb874..e8933c65 100644 --- a/lib/httpx/plugins/oauth.rb +++ b/lib/httpx/plugins/oauth.rb @@ -60,7 +60,7 @@ module HTTPX end def load(http) - return if @token_endpoint && @token_endpoint_auth_method && @grant_type && @scope + return if @token_endpoint_auth_method && @grant_type && @scope metadata = http.get("#{@issuer}/.well-known/oauth-authorization-server").raise_for_status.json