fix(gateway): postToken param type BodyInserter<?, ? super ClientHttpRequest> (matches body() signature)
CodeQL Advanced / Analyze (actions) (push) Canceled after 0s
CodeQL Advanced / Analyze (java-kotlin) (push) Canceled after 0s
CodeQL Advanced / Analyze (javascript-typescript) (push) Canceled after 0s
CodeQL Advanced / Analyze (python) (push) Canceled after 0s
Docker Image Build & Push / manifest (push) Canceled after 0s
Docker Image Build & Push / build-and-push-arm (push) Canceled after 0s
Docker Image Build & Push / build-and-push-amd (push) Canceled after 0s
Gateway Docker Image CI / Build and Push Gateway Docker Image (push) Canceled after 0s

This commit is contained in:
figmar
2026-08-31 03:28:22 +08:00
parent b1caabdd18
commit 9b8f96c877
@@ -4,6 +4,7 @@ import com.deepdata.gateway.infrastructure.casdoor.dto.CasdoorTokenResponse;
import io.netty.channel.ChannelOption;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.MediaType;
import org.springframework.http.client.reactive.ClientHttpRequest;
import org.springframework.http.client.reactive.ReactorClientHttpConnector;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.function.BodyInserter;
@@ -105,7 +106,7 @@ public class CasdoorClient {
* 非 2xx 解析错误 JSON 并抛出带 error_description 的异常。
*/
private Mono<CasdoorTokenResponse> postToken(
BodyInserter<?, ?> form, String op) {
BodyInserter<?, ? super ClientHttpRequest> form, String op) {
return webClient.post()
.uri(props.getTokenUri())
.contentType(MediaType.APPLICATION_FORM_URLENCODED)