PR Feedback

This commit is contained in:
gamab 2024-10-04 15:17:41 +02:00
parent 86867a14ca
commit 4fba5c9b32
No known key found for this signature in database
GPG Key ID: 88D8810B587562C1
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ func ReadGrpcClientConfig(cfg *setting.Cfg) (*GrpcClientConfig, error) {
return &GrpcClientConfig{ return &GrpcClientConfig{
Token: section.Key("token").MustString(""), Token: section.Key("token").MustString(""),
TokenExchangeURL: section.Key("token_exchange_url").MustString(""), TokenExchangeURL: section.Key("token_exchange_url").MustString(""),
TokenNamespace: section.Key("token_namespace").MustString("stack-" + cfg.StackID), TokenNamespace: section.Key("token_namespace").MustString("stacks-" + cfg.StackID),
Mode: mode, Mode: mode,
}, nil }, nil
} }

View File

@ -10,7 +10,7 @@ import (
) )
func NewGrpcAuthenticator(cfg *setting.Cfg) (*authnlib.GrpcAuthenticator, error) { func NewGrpcAuthenticator(cfg *setting.Cfg) (*authnlib.GrpcAuthenticator, error) {
authCfg, err := ReadGprcServerConfig(cfg) authCfg, err := ReadGrpcServerConfig(cfg)
if err != nil { if err != nil {
return nil, err return nil, err
} }