From 499a31df530276f7f5bdf10d3547b6d6f077af0b Mon Sep 17 00:00:00 2001 From: Claudiu Dragalina-Paraipan Date: Tue, 3 Sep 2024 15:59:09 +0300 Subject: [PATCH] update usage of ReadGprcServerConfig() --- pkg/services/authn/grpcutils/grpc_authenticator.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/services/authn/grpcutils/grpc_authenticator.go b/pkg/services/authn/grpcutils/grpc_authenticator.go index f3d12462368..639439ba366 100644 --- a/pkg/services/authn/grpcutils/grpc_authenticator.go +++ b/pkg/services/authn/grpcutils/grpc_authenticator.go @@ -10,11 +10,7 @@ import ( ) func NewGrpcAuthenticator(cfg *setting.Cfg) (*authnlib.GrpcAuthenticator, error) { - authCfg, err := ReadGprcServerConfig(cfg) - if err != nil { - return nil, err - } - + authCfg := ReadGprcServerConfig(cfg) grpcAuthCfg := authnlib.GrpcAuthenticatorConfig{ KeyRetrieverConfig: authnlib.KeyRetrieverConfig{ SigningKeysURL: authCfg.SigningKeysURL,