Update pkg/services/authz/config.go

drclau/unistor/namespace_authorizer
Gabriel MABILLE 9 months ago committed by GitHub
parent 4fba5c9b32
commit 68af25fbc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      pkg/services/authz/config.go

@ -44,7 +44,7 @@ func ReadCfg(cfg *setting.Cfg) (*Cfg, error) {
token := grpcClientAuthSection.Key("token").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.
if cfg.StackID != "" && token == "" && tokenExchangeURL == "" {

Loading…
Cancel
Save