lib/rodauth/features/oauth_token_introspection.rb in rodauth-oauth-0.10.2 vs lib/rodauth/features/oauth_token_introspection.rb in rodauth-oauth-0.10.3

- old
+ new

@@ -82,10 +82,10 @@ def introspection_request(token_type_hint, token) auth_url = URI(authorization_server_url) http = Net::HTTP.new(auth_url.host, auth_url.port) http.use_ssl = auth_url.scheme == "https" - request = Net::HTTP::Post.new(introspect_path) + request = Net::HTTP::Post.new(auth_url.path + introspect_path) request["content-type"] = "application/x-www-form-urlencoded" request["accept"] = json_response_content_type request.set_form_data({ "token_type_hint" => token_type_hint, "token" => token }) before_introspection_request(request)