AuthenticationPolicy class

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

Constructors

AuthenticationPolicy({Input<List<OriginAuthenticationMethod>>? origins, Input<List<PeerAuthenticationMethod>>? peers, Input<AuthenticationPolicyPrincipalBinding>? principalBinding, Input<TlsContext>? serverTlsContext})
Creates a new AuthenticationPolicy. origins 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. peers 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. principalBinding 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. serverTlsContext Configures the mechanism to obtain server-side security certificates and identity information.
const
AuthenticationPolicy.fromMap(Map<String, dynamic> map)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
origins → Input<List<OriginAuthenticationMethod>>?
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.
final
peers → Input<List<PeerAuthenticationMethod>>?
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.
final
principalBinding → Input<AuthenticationPolicyPrincipalBinding>?
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.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serverTlsContext → Input<TlsContext>?
Configures the mechanism to obtain server-side security certificates and identity information.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited