@@ -25,7 +25,7 @@ type Authenticator interface {
25
25
26
26
// NewAuthenticatorFromConfiguration creates a tree of Authenticator
27
27
// objects based on a configuration file.
28
- func NewAuthenticatorFromConfiguration (policy * configuration.AuthenticationPolicy , group program.Group ) (Authenticator , bool , bool , error ) {
28
+ func NewAuthenticatorFromConfiguration (policy * configuration.AuthenticationPolicy , group program.Group , grpcClientFactory ClientFactory ) (Authenticator , bool , bool , error ) {
29
29
if policy == nil {
30
30
return nil , false , false , status .Error (codes .InvalidArgument , "Authentication policy not specified" )
31
31
}
@@ -41,7 +41,7 @@ func NewAuthenticatorFromConfiguration(policy *configuration.AuthenticationPolic
41
41
needsPeerTransportCredentials := false
42
42
requestTLSClientCertificate := false
43
43
for _ , childConfiguration := range policyKind .Any .Policies {
44
- child , childNeedsPeerTransportCredentials , childRequestTLSClientCertificate , err := NewAuthenticatorFromConfiguration (childConfiguration , group )
44
+ child , childNeedsPeerTransportCredentials , childRequestTLSClientCertificate , err := NewAuthenticatorFromConfiguration (childConfiguration , group , grpcClientFactory )
45
45
if err != nil {
46
46
return nil , false , false , err
47
47
}
@@ -55,7 +55,7 @@ func NewAuthenticatorFromConfiguration(policy *configuration.AuthenticationPolic
55
55
needsPeerTransportCredentials := false
56
56
requestTLSClientCertificate := false
57
57
for _ , childConfiguration := range policyKind .All .Policies {
58
- child , childNeedsPeerTransportCredentials , childRequestTLSClientCertificate , err := NewAuthenticatorFromConfiguration (childConfiguration , group )
58
+ child , childNeedsPeerTransportCredentials , childRequestTLSClientCertificate , err := NewAuthenticatorFromConfiguration (childConfiguration , group , grpcClientFactory )
59
59
if err != nil {
60
60
return nil , false , false , err
61
61
}
0 commit comments