Skip to content

Commit e19cb50

Browse files
authored
Merge pull request #1287 from smallstep/herman/remove-scope-flag
Add `--remove-scope` flag
2 parents d8ddcb6 + 9cbb404 commit e19cb50

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

command/ca/provisioner/provisioner.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,11 @@ Use the '--group' flag multiple times to configure multiple groups.`,
611611
Name: "scope",
612612
Usage: `The <scope> list used to validate the scopes extension in an OpenID Connect token.
613613
Use the '--scope' flag multiple times to configure multiple scopes.`,
614+
}
615+
oidcRemoveScopeFlag = cli.StringSliceFlag{
616+
Name: "remove-scope",
617+
Usage: `Remove the <scope> used to validate the scopes extension in an OpenID Connect token.
618+
Use the '--remove-scope' flag multiple times to remove multiple scopes.`,
614619
}
615620
oidcAuthParamFlag = cli.StringSliceFlag{
616621
Name: "auth-param",

command/ca/provisioner/update.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ SCEP
129129
oidcGroupFlag,
130130
oidcTenantIDFlag,
131131
oidcScopeFlag,
132+
oidcRemoveScopeFlag,
132133
oidcAuthParamFlag,
133134

134135
// X5C Root Flag

0 commit comments

Comments
 (0)