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

Method apiPickerOptionsWithoutAuth0

internal/cli/roles_permissions.go:258–269  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

256}
257
258func (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
271func (c *cli) pickRolePermissions(apiScopes []management.ResourceServerScope, permissions *[]string) error {
272 // NOTE(cyx): We're inlining this for now since we have no generic

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected