MCPcopy Create free account
hub / github.com/auth0/auth0-cli / apiAuthMethodFor

Function apiAuthMethodFor

internal/cli/apps.go:993–1004  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

991}
992
993func apiAuthMethodFor(v string) *string {
994 switch strings.ToLower(v) {
995 case "none":
996 return auth0.String("none")
997 case "post":
998 return auth0.String("client_secret_post")
999 case "basic":
1000 return auth0.String("client_secret_basic")
1001 default:
1002 return nil
1003 }
1004}
1005
1006func apiDefaultAuthMethodFor(t string) *string {
1007 switch apiTypeFor(strings.ToLower(t)) {

Callers 2

createAppCmdFunction · 0.85
updateAppCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected