Multiple grant scope IDs (#4251)
Co-authored-by: Timothy Messier <tim.messier@gmail.com> Co-authored-by: Todd <github@quaddi.com>
This commit is contained in:
70 files changed
+5460
-1009
No files matched your search
@@ -71,6 +71,13 @@ func (c *Command) Flags() *base.FlagSets {
|
||||
}
|
||||
|
||||
func (c *Command) Run(args []string) int {
|
||||
f := c.Flags()
|
||||
|
||||
if err := f.Parse(args); err != nil {
|
||||
c.PrintCliError(err)
|
||||
return base.CommandUserError
|
||||
}
|
||||
|
||||
client, err := c.Client(base.WithNoTokenScope(), base.WithNoTokenValue())
|
||||
if c.WrapperCleanupFunc != nil {
|
||||
defer func() {
|
||||
@@ -84,13 +91,6 @@ func (c *Command) Run(args []string) int {
|
||||
return base.CommandCliError
|
||||
}
|
||||
|
||||
f := c.Flags()
|
||||
|
||||
if err := f.Parse(args); err != nil {
|
||||
c.PrintCliError(err)
|
||||
return base.CommandUserError
|
||||
}
|
||||
|
||||
// Lookup the primary auth method ID in the global scope
|
||||
aClient := authmethods.NewClient(client)
|
||||
pri, err := getPrimaryAuthMethodId(c.Context, aClient, scope.Global.String(), "")
|
||||
|
||||
Reference in new issue
Block a user