mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
PR Feedback
This commit is contained in:
parent
86867a14ca
commit
4fba5c9b32
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user