(ctx context.Context)
| 256 | } |
| 257 | |
| 258 | func (c *cli) apiPickerOptionsWithoutAuth0(ctx context.Context) (pickerOptions, error) { |
| 259 | return c.filteredAPIPickerOptions(ctx, func(r *management.ResourceServer) bool { |
| 260 | parsedURL, err := url.Parse(r.GetIdentifier()) |
| 261 | if err != nil { |
| 262 | return false |
| 263 | } |
| 264 | |
| 265 | // We only allow API Identifiers not matching the |
| 266 | // tenant domain, similar to the dashboard UX. |
| 267 | return parsedURL.Host != c.tenant |
| 268 | }) |
| 269 | } |
| 270 | |
| 271 | func (c *cli) pickRolePermissions(apiScopes []management.ResourceServerScope, permissions *[]string) error { |
| 272 | // NOTE(cyx): We're inlining this for now since we have no generic |
nothing calls this directly
no test coverage detected