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)
| 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. |
| 1016 | func 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 | |
| 1036 | func printAPIDetails(cli *cli, rs *management.ResourceServer) { |
| 1037 | cli.renderer.Newline() |
no test coverage detected