AuthenticationPolicyArgs

data class AuthenticationPolicyArgs(val origins: Output<List<OriginAuthenticationMethodArgs>>? = null, val peers: Output<List<PeerAuthenticationMethodArgs>>? = null, val principalBinding: Output<AuthenticationPolicyPrincipalBinding>? = null, val serverTlsContext: Output<TlsContextArgs>? = null) : ConvertibleToJava<AuthenticationPolicyArgs>

Deprecated The authentication settings for the backend service. The authentication settings for the backend service.

Constructors

Link copied to clipboard
fun AuthenticationPolicyArgs(origins: Output<List<OriginAuthenticationMethodArgs>>? = null, peers: Output<List<PeerAuthenticationMethodArgs>>? = null, principalBinding: Output<AuthenticationPolicyPrincipalBinding>? = null, serverTlsContext: Output<TlsContextArgs>? = null)

Functions

Link copied to clipboard
open override fun toJava(): AuthenticationPolicyArgs

Properties

Link copied to clipboard

List of authentication methods that can be used for origin authentication. Similar to peers, these will be evaluated in order the first valid one will be used to set origin identity. If none of these methods pass, the request will be rejected with authentication failed error (401). Leave the list empty if origin authentication is not required.

Link copied to clipboard

List of authentication methods that can be used for peer authentication. They will be evaluated in order the first valid one will be used to set peer identity. If none of these methods pass, the request will be rejected with authentication failed error (401). Leave the list empty if peer authentication is not required.

Link copied to clipboard

Define whether peer or origin identity should be used for principal. Default value is USE_PEER. If peer (or origin) identity is not available, either because peer/origin authentication is not defined, or failed, principal will be left unset. In other words, binding rule does not affect the decision to accept or reject request. This field can be set to one of the following: USE_PEER: Principal will be set to the identity from peer authentication. USE_ORIGIN: Principal will be set to the identity from origin authentication.

Link copied to clipboard
val serverTlsContext: Output<TlsContextArgs>? = null

Configures the mechanism to obtain server-side security certificates and identity information.