From 0f93aa79a6e4605bd2daa182c362fe4f86a047f3 Mon Sep 17 00:00:00 2001 From: Morgan <23509639+morganelle@users.noreply.github.com> Date: Thu, 29 Apr 2021 16:20:17 -0700 Subject: [PATCH] Grants string (#270) * remove auth0.String from apiGrantsFor slice items * remove test file --- internal/cli/apps.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/internal/cli/apps.go b/internal/cli/apps.go index 810eb7683..43763647c 100644 --- a/internal/cli/apps.go +++ b/internal/cli/apps.go @@ -745,25 +745,25 @@ func apiGrantsFor(s []string) []interface{} { for i, v := range s { switch strings.ToLower(v) { case "authorization-code", "code": - res[i] = auth0.String("authorization_code") + res[i] = "authorization_code" case "implicit": - res[i] = auth0.String("implicit") + res[i] = "implicit" case "refresh-token": - res[i] = auth0.String("refresh_token") + res[i] = "refresh_token" case "client-credentials", "credentials": - res[i] = auth0.String("client_credentials") + res[i] = "client_credentials" case "password": - res[i] = auth0.String("password") + res[i] = "password" case "password-realm": - res[i] = auth0.String("http://auth0.com/oauth/grant-type/password-realm") + res[i] = "http://auth0.com/oauth/grant-type/password-realm" case "mfa-oob": - res[i] = auth0.String("http://auth0.com/oauth/grant-type/mfa-oob") + res[i] = "http://auth0.com/oauth/grant-type/mfa-oob" case "mfa-otp": - res[i] = auth0.String("http://auth0.com/oauth/grant-type/mfa-otp") + res[i] = "http://auth0.com/oauth/grant-type/mfa-otp" case "mfa-recovery-code": - res[i] = auth0.String("http://auth0.com/oauth/grant-type/mfa-recovery-code") + res[i] = "http://auth0.com/oauth/grant-type/mfa-recovery-code" case "device-code": - res[i] = auth0.String("urn:ietf:params:oauth:grant-type:device_code") + res[i] = "urn:ietf:params:oauth:grant-type:device_code" default: } }