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
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:
+2
-1
@@ -4,6 +4,7 @@ import com.deepdata.gateway.infrastructure.casdoor.dto.CasdoorTokenResponse;
|
|||||||
import io.netty.channel.ChannelOption;
|
import io.netty.channel.ChannelOption;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.http.MediaType;
|
import org.springframework.http.MediaType;
|
||||||
|
import org.springframework.http.client.reactive.ClientHttpRequest;
|
||||||
import org.springframework.http.client.reactive.ReactorClientHttpConnector;
|
import org.springframework.http.client.reactive.ReactorClientHttpConnector;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
import org.springframework.web.reactive.function.BodyInserter;
|
import org.springframework.web.reactive.function.BodyInserter;
|
||||||
@@ -105,7 +106,7 @@ public class CasdoorClient {
|
|||||||
* 非 2xx 解析错误 JSON 并抛出带 error_description 的异常。
|
* 非 2xx 解析错误 JSON 并抛出带 error_description 的异常。
|
||||||
*/
|
*/
|
||||||
private Mono<CasdoorTokenResponse> postToken(
|
private Mono<CasdoorTokenResponse> postToken(
|
||||||
BodyInserter<?, ?> form, String op) {
|
BodyInserter<?, ? super ClientHttpRequest> form, String op) {
|
||||||
return webClient.post()
|
return webClient.post()
|
||||||
.uri(props.getTokenUri())
|
.uri(props.getTokenUri())
|
||||||
.contentType(MediaType.APPLICATION_FORM_URLENCODED)
|
.contentType(MediaType.APPLICATION_FORM_URLENCODED)
|
||||||
|
|||||||
Reference in New Issue
Block a user