mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
Update pkg/services/authz/config.go
This commit is contained in:
parent
4fba5c9b32
commit
68af25fbc3
@ -44,7 +44,7 @@ func ReadCfg(cfg *setting.Cfg) (*Cfg, error) {
|
|||||||
|
|
||||||
token := grpcClientAuthSection.Key("token").MustString("")
|
token := grpcClientAuthSection.Key("token").MustString("")
|
||||||
tokenExchangeURL := grpcClientAuthSection.Key("token_exchange_url").MustString("")
|
tokenExchangeURL := grpcClientAuthSection.Key("token_exchange_url").MustString("")
|
||||||
tokenNamespace := grpcClientAuthSection.Key("token_namespace").MustString("stack-" + cfg.StackID)
|
tokenNamespace := grpcClientAuthSection.Key("token_namespace").MustString("stacks-" + cfg.StackID)
|
||||||
|
|
||||||
// When running in cloud mode, the token and tokenExchangeURL are required.
|
// When running in cloud mode, the token and tokenExchangeURL are required.
|
||||||
if cfg.StackID != "" && token == "" && tokenExchangeURL == "" {
|
if cfg.StackID != "" && token == "" && tokenExchangeURL == "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user