Update pkg/services/authz/config.go
This commit is contained in:
@@ -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 == "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user