Skip to content

help request: how to config proxy server for apisix to process oauth2 via openid-connect #9922

Description

@darkSheep404

Description

how to config proxy server for apisix to access oauth2 provider in different network

request background

hi apisix team:
因为有区分内外网隔离环境
访问外部认证服务器需要走代理从内网服务器从内网出外网
在Springboot中需要配置代理服务器 like

private WebClient buildByProxyClientConnector(WebClient.Builder webClientBuilder) {
    return webClientBuilder.clientConnector(getProxyReactorClientHttpConnector()).build();
  }
 HttpClient.create(proxyClientProvider())
            .proxy(
                proxy ->
                    proxy
                        .type(ProxyProvider.Proxy.HTTP)
                        .address(
                            new InetSocketAddress(
                                webServiceProperties.getProxyHost(),
                                Integer.parseInt(webServiceProperties.getProxyPort())))));

这样 使用这个Webclient的请求可以走代理服务器到外网

请问apisix是否支持通过配置来实现这一功能

Environment

  • APISIX version : apisix:2.12.1-alpine

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions