Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,17 @@ pub struct PolicyOptions {
/// Beamline Policy Endpoint
///
/// eg, https://authz.diamond.ac.uk
#[clap(long = "policy", required = false)]
#[clap(long = "policy", required = false, env = "NUMTRACKER_AUTH_HOST")]
pub policy_host: String,
/// The Rego rule used to generate visit access data
///
/// eg. v1/data/diamond/policy/session/write_to_beamline_visit
#[clap(long, required = false)]
#[clap(long, required = false, env = "NUMTRACKER_AUTH_ACCESS")]
pub access_query: String,
/// The Rego rule used to generate admin access data
///
/// eg. v1/data/diamond/policy/admin/configure_beamline
#[clap(long, required = false)]
#[clap(long, required = false, env = "NUMTRACKER_AUTH_ADMIN")]
pub admin_query: String,
}

Expand Down
Loading