Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add client secret to output when creating a regular web application #488

Closed
mraible opened this issue Sep 16, 2022 · 4 comments
Closed

Add client secret to output when creating a regular web application #488

mraible opened this issue Sep 16, 2022 · 4 comments
Labels
feature request A feature has been asked for or suggested by the community

Comments

@mraible
Copy link

mraible commented Sep 16, 2022

Describe the problem you'd like to have solved

Currently, when you create a Regular Web Application using auth0 apps create, it doesn't display the client secret in the output. You have to run auth0 apps open to get the client secret. This is kind of a pain for developers doing tutorials using the CLI.

Describe the ideal solution

The client secret appears below the client ID.

Alternatives and current workarounds

auth0 apps open
@sergiught sergiught added the feature request A feature has been asked for or suggested by the community label Oct 10, 2022
@willvedd
Copy link
Contributor

willvedd commented Jan 9, 2023

@mraible This is currently possible with the --reveal flag. However, I do admit that flag doesn't intuitively describe what it reveals. In the next major version of the CLI we intend to rename this flag to something like --reveal-client-secret to be more descriptive and self-documenting.

@mraible
Copy link
Author

mraible commented Jan 25, 2023

The --reveal flag doesn't seem to work with auth0 apps show. Should it?

$ auth0 apps show --reveal

=== dev-06bzs1cu.us.auth0.com error

 ▸    unknown flag: --reveal
$ auth0 apps show --reveal-client-secret

=== dev-06bzs1cu.us.auth0.com error

 ▸    unknown flag: --reveal-client-secret

@sergiught
Copy link
Contributor

@mraible it's --reveal-secrets

You can run auth0 apps show -h to get a quick preview of the usages/examples/help text for the command and its flags.

Display the name, description, app type, and other information about an application.

Usage:
  auth0 apps show [flags]

Examples:
  auth0 apps show
  auth0 apps show <app-id>
  auth0 apps show <app-id> --reveal-secrets
  auth0 apps show <app-id> -r --json

Flags:
  -h, --help             Help for show.
      --json             Output in json format.
  -r, --reveal-secrets   Display the application secrets ('signing_keys', 'client_secret') as part of the command output.

Global Flags:
      --debug           Enable debug mode.
      --no-color        Disable colors.
      --no-input        Disable interactivity.
      --tenant string   Specific tenant to use.

@mraible
Copy link
Author

mraible commented Jan 25, 2023

This works. Thanks @sergiught!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A feature has been asked for or suggested by the community
Projects
None yet
Development

No branches or pull requests

3 participants