(v string)
| 991 | } |
| 992 | |
| 993 | func 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 | |
| 1006 | func apiDefaultAuthMethodFor(t string) *string { |
| 1007 | switch apiTypeFor(strings.ToLower(t)) { |
no outgoing calls
no test coverage detected