Giter VIP home page Giter VIP logo

Comments (14)

tlvenn avatar tlvenn commented on July 20, 2024 1

Hi @dkerwin,

I though google was still implicit ? If there is no implicit provider anymore, I think having some kind of fallback would be great, I don't really expect that dexter auth default could work but dexter auth could / should fallback to a predefined provider that can be changed at compile time.

from dexter.

phidlipus avatar phidlipus commented on July 20, 2024 1

It would be great if we can set the default provider during the compile time and still use simpler form of command dexter auth instead of new form dexter auth google.

from dexter.

tlvenn avatar tlvenn commented on July 20, 2024 1

I think it's more about trying to keep it as simple / stupid as possible for end users.
If a given org is only going to use a single provider at a time, why should it forces its users to specify it all the time, it should be transparent / invisible.

Maybe the official release of dexter should not favor one provider over another so effectively there is no fallback defined and the provider has to be explicit. And for custom build being released by orgs, they can define the fallback provider at compile time so that it's invisible to their users if they want to.

It's the same reasoning for the a potential Dex integration and its endpoint which is by nature custom. I would rather tell people in my org to do: dexter auth rather than dexter auth dex https://dex.mycompany.com

Of course the tradeoff being that now someone needs to build and distribute a custom build. Some orgs might choose the simpler approach on leveraging the official distribution and pushing the concern of oidc provider and its endpoint to their users and some org will choose the other path but I believe both should exist and be facilitated without forcing people to create a fork of the project and to maintain it.

from dexter.

dkerwin avatar dkerwin commented on July 20, 2024 1

Thank you both for the clarifications. I'll have a closer look at the problem see if I can come up with a good solution. I'm glad dexter is helpful to you @Filip-Havlicek

from dexter.

dkerwin avatar dkerwin commented on July 20, 2024

Hi @tlvenn! Is this issue still something you would want to have after #30 is merged?

from dexter.

dkerwin avatar dkerwin commented on July 20, 2024

Now that each provider has its own sub command I close this issue. Please reopen if you think this feature is still worth implementing. Thanks!

from dexter.

tlvenn avatar tlvenn commented on July 20, 2024

Hi @dkerwin, i think it's important when you have to provide a custom build, for example in the case of dex integration.

Whenever you provide a custom build to your end users, you should be able to alter the default provider so the cli command is as simple as possible. Right now it forces me to alter the code which is relatively trivial but would prefer to have a declarative approach.

from dexter.

dkerwin avatar dkerwin commented on July 20, 2024

Hi @tlvenn!

I understand your point. How would that look like now that providers are split into individual sub commands? Have a new subcommand (eg. default) that is just a wrapper around the compile time configured provider?

from dexter.

tlvenn avatar tlvenn commented on July 20, 2024

@Filip-Havlicek my though exactly

from dexter.

dkerwin avatar dkerwin commented on July 20, 2024

The problem I see here is that auth would show unpredictable behaviour. If a provider is predefined, it would run that and if not it would just show the help screen. Wouldn't it be exactly as helpful to have a new command (eg. default, builtin, xxx)? Is the driver for the both of you to give your users a consistent experience even if you decide to switch providers?

from dexter.

phidlipus avatar phidlipus commented on July 20, 2024

We are only using google, so we don't need other providers (at the moment). I understand why you reworked provider code. I just liked old behaviour when I simply wrote dexter auth.
New additional command for default provider doesn't make sense (for me). In that case, it's not problem use the real provider name (google in my case).
By the way, I like dexter and thanks for it.

from dexter.

dkerwin avatar dkerwin commented on July 20, 2024

Hey @tlvenn & @Filip-Havlicek,

would be great if you could give the PR a spin and see if it matches your expectations.

from dexter.

phidlipus avatar phidlipus commented on July 20, 2024

@dkerwin I built it and it works as expected and it matches my expectations. You are fast.

from dexter.

tlvenn avatar tlvenn commented on July 20, 2024

Awesome, that's perfect, thanks @dkerwin !

from dexter.

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.