Skip to content

Commit 1139a9e

Browse files
fix: oidc connection
removed requires and group from oidc related args we are anyways checking in the `openid()` if all three exists then set OpenidConfig, else None
1 parent 4e79561 commit 1139a9e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/cli.rs

-6
Original file line numberDiff line numberDiff line change
@@ -299,17 +299,13 @@ pub struct Options {
299299
long,
300300
long = "oidc-client",
301301
env = "P_OIDC_CLIENT_ID",
302-
requires = "oidc",
303-
group = "oidc",
304302
help = "Client id for OIDC provider"
305303
)]
306304
oidc_client_id: Option<String>,
307305

308306
#[arg(
309307
long,
310308
env = "P_OIDC_CLIENT_SECRET",
311-
requires = "oidc",
312-
group = "oidc",
313309
help = "Client secret for OIDC provider"
314310
)]
315311
oidc_client_secret: Option<String>,
@@ -318,8 +314,6 @@ pub struct Options {
318314
long,
319315
env = "P_OIDC_ISSUER",
320316
value_parser = validation::url,
321-
requires = "oidc",
322-
group = "oidc",
323317
help = "OIDC provider's host address"
324318
)]
325319
oidc_issuer: Option<Url>,

0 commit comments

Comments
 (0)