public static final class AddGatewayAuthRequest.ExternalAuthZJSON.Builder extends Object
public AddGatewayAuthRequest.ExternalAuthZJSON.Builder allowRequestHeaders(List<String> allowRequestHeaders)
The header that can be carried in an authentication request.
public AddGatewayAuthRequest.ExternalAuthZJSON.Builder allowUpstreamHeaders(List<String> allowUpstreamHeaders)
The header that can be retained in an authentication response.
public AddGatewayAuthRequest.ExternalAuthZJSON.Builder bodyMaxBytes(Integer bodyMaxBytes)
public AddGatewayAuthRequest.ExternalAuthZJSON.Builder isRestrict(Boolean isRestrict)
Specifies whether the gateway allows a client request when the authentication server is unavailable. If a connection to the authentication server fails to be established or a 5xx error code is returned, the authentication server is unavailable.
example:true
public AddGatewayAuthRequest.ExternalAuthZJSON.Builder prefixPath(String prefixPath)
The path of the authentication API provided by the authentication service. The path supports the prefix match method.
example:/auth
public AddGatewayAuthRequest.ExternalAuthZJSON.Builder serviceId(Long serviceId)
The ID of the service.
example:1
public AddGatewayAuthRequest.ExternalAuthZJSON.Builder timeout(Integer timeout)
The timeout period. Unit: seconds.
example:100
public AddGatewayAuthRequest.ExternalAuthZJSON.Builder tokenKey(String tokenKey)
The header that stores a token in an authentication request. In most cases, a token is stored in the Authorization or Cookie header.
example:Authorization
public AddGatewayAuthRequest.ExternalAuthZJSON.Builder withRematchRoute(Boolean withRematchRoute)
public AddGatewayAuthRequest.ExternalAuthZJSON.Builder withRequestBody(Boolean withRequestBody)
public AddGatewayAuthRequest.ExternalAuthZJSON build()
Copyright © 2026. All rights reserved.