Skip to content

Commit

Permalink
Grants string (#270)
Browse files Browse the repository at this point in the history
* remove auth0.String from apiGrantsFor slice items

* remove test file
  • Loading branch information
morganelle committed Apr 29, 2021
1 parent 781f245 commit 0f93aa7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions internal/cli/apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
}
}
Expand Down

0 comments on commit 0f93aa7

Please sign in to comment.