Skip to content

Commit

Permalink
fix: auth in standalone mode (#2591)
Browse files Browse the repository at this point in the history
chore: user_provider in standalone mode
  • Loading branch information
shuiyisong authored Oct 13, 2023
1 parent 8a0054a commit d89cfd0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cmd/src/standalone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ pub struct StandaloneOptions {
pub metadata_store: KvStoreConfig,
pub procedure: ProcedureConfig,
pub logging: LoggingOptions,
pub user_provider: Option<String>,
/// Options for different store engines.
pub region_engine: Vec<RegionEngineConfig>,
}
Expand All @@ -120,6 +121,7 @@ impl Default for StandaloneOptions {
metadata_store: KvStoreConfig::default(),
procedure: ProcedureConfig::default(),
logging: LoggingOptions::default(),
user_provider: None,
region_engine: vec![
RegionEngineConfig::Mito(MitoConfig::default()),
RegionEngineConfig::File(FileEngineConfig::default()),
Expand All @@ -141,6 +143,7 @@ impl StandaloneOptions {
prom_store: self.prom_store,
meta_client: None,
logging: self.logging,
user_provider: self.user_provider,
..Default::default()
}
}
Expand Down Expand Up @@ -278,6 +281,9 @@ impl StartCommand {
if self.influxdb_enable {
opts.influxdb.enable = self.influxdb_enable;
}

opts.user_provider = self.user_provider.clone();

let metadata_store = opts.metadata_store.clone();
let procedure = opts.procedure.clone();
let frontend = opts.clone().frontend_options();
Expand Down

0 comments on commit d89cfd0

Please sign in to comment.