Code Monkey home page Code Monkey logo

Comments (2)

willvedd avatar willvedd commented on July 23, 2024

Dear valued user,

We had considered those exact flags during initial implementation of the login function. However, we realized that there were flags that allowed you to "skip" the choice of login mechanism:

As User: auth0 login --domain <tenant-domain> --client-id <client-id> --client-secret <client-secret>

As Machine: auth0 login --no-input

Admittedly, the --no-input flag is not immediately intuitive and a --as-user could certainly be added in the future.

Does the above help?

from auth0-cli.

evansims avatar evansims commented on July 23, 2024

Hey @willvedd! 😆

Thanks! And I gotcha, that decision makes total sense. We are, admittedly, kind of applying the CLI in a use case it wasn't initially planned of being used for, I think. There are bound to be situations like this.

Thanks for the guidance examples! The "as user" guidance example you provided would work, but at least for this use case, where we have a lot of first-time users coming to Auth0 with clean tenants and unfamiliarity with the processes, it would be problematic from a DX perspective.

It would require considerably more work for the end user to craft the command, and guidance from ourselves in how to craft it, meaning lengthier quickstarts and READMEs, and more opportunity for errors by users during configuration.

There's a bit of a chicken-and-the-egg situation, too, for this use case. If you take a look at a quickstart that uses the CLI, as an example, users won't have the information necessary to craft the authentication command as you demo'd beforehand: https://auth0.com/docs/quickstart/webapp/laravel/01-login#sdk-configuration

(No fires on this (and my other) suggestion by the way, just rough areas I noticed that we could consider improving to ease CLI adoption for use with the SDKs! Just something to consider. ❤️)

from auth0-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.