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

Function printClientDetails

internal/cli/quickstarts.go:1016–1034  ·  view source on GitHub ↗

printClientDetails prints post-creation guidance for the new Auth0 application. The config-file outcome is reported by WriteQuickstartConfig itself (success message or aborted-with-content warning), so it is intentionally not echoed here.

(cli *cli, client *management.Client)

Source from the content-addressed store, hash-verified

1014// The config-file outcome is reported by WriteQuickstartConfig itself (success
1015// message or aborted-with-content warning), so it is intentionally not echoed here.
1016func printClientDetails(cli *cli, client *management.Client) {
1017 cli.renderer.Successf("App %s has been created in the management console", ansi.Magenta(client.GetName()))
1018 cli.renderer.Newline()
1019 manageTenantURL := formatManageTenantURL(cli.Config.DefaultTenant, &cli.Config)
1020
1021 settingsURL := fmt.Sprintf("%s%s", manageTenantURL, formatAppSettingsPath(client.GetClientID()))
1022 cli.renderer.Successf("You can manage your application %s(%s) from here:", client.GetName(), ansi.Magenta(client.GetClientID()))
1023 cli.renderer.Detailf(ansi.Magenta(settingsURL))
1024 cli.renderer.Newline()
1025
1026 if len(client.GetCallbacks()) > 0 {
1027 cli.renderer.Successf("Callback URLs registered in Auth0 Dashboard: %s", ansi.Magenta(strings.Join(client.GetCallbacks(), ", ")))
1028 cli.renderer.Newline()
1029 }
1030 if len(client.GetAllowedLogoutURLs()) > 0 {
1031 cli.renderer.Successf("Logout URLs registered: %s", ansi.Magenta(strings.Join(client.GetAllowedLogoutURLs(), ", ")))
1032 cli.renderer.Newline()
1033 }
1034}
1035
1036func printAPIDetails(cli *cli, rs *management.ResourceServer) {
1037 cli.renderer.Newline()

Callers 1

createQuickstartAppFunction · 0.85

Calls 7

MagentaFunction · 0.92
formatManageTenantURLFunction · 0.85
formatAppSettingsPathFunction · 0.85
SuccessfMethod · 0.80
NewlineMethod · 0.80
DetailfMethod · 0.80
GetNameMethod · 0.65

Tested by

no test coverage detected