Giter Club home page Giter Club logo

Comments (8)

cppforlife avatar cppforlife commented on August 20, 2024

from bosh-cli.

cppforlife avatar cppforlife commented on August 20, 2024

from bosh-cli.

sharms avatar sharms commented on August 20, 2024
  • UAA is configured for both SAML and internal authentication
  • With both enabled, bosh-cli does not allow login to internal because of AskForPassword
  • Ruby cli does not exhibit this behavior

from bosh-cli.

jmcarp avatar jmcarp commented on August 20, 2024

Minor clarification--the ruby cli does incorrectly prompt for an otp when both saml and local accounts are enabled, but it's still possible to use local accounts because the ruby cli accepts empty strings for the otp. The golang cli doesn't accept empty strings here, so it's impossible to login in this situation.

from bosh-cli.

cppforlife avatar cppforlife commented on August 20, 2024

...but it's still possible to use local accounts because the ruby cli accepts empty strings for the otp. The golang cli doesn't accept empty strings here, so it's impossible to login in this situation.

ah. nice find! sounds like we can fix that. it's using go-interact library: https://github.com/cloudfoundry/bosh-cli/blob/master/ui/ui.go#L101

from bosh-cli.

cppforlife avatar cppforlife commented on August 20, 2024

@sharms @jmcarp if it's easy can you check if removing interact.Required(...) wrapper from two lines: [1], [2] allows you to log in?

[1] https://github.com/cloudfoundry/bosh-cli/blob/master/ui/ui.go#L104
[2] https://github.com/cloudfoundry/bosh-cli/blob/master/ui/ui.go#L132

from bosh-cli.

jmcarp avatar jmcarp commented on August 20, 2024

@cppforlife: yep, allowing prompt values to be empty lets us log in again. I sent an example in #62.

from bosh-cli.

cppforlife avatar cppforlife commented on August 20, 2024

Closed via PR#62. Next of version of CLI will have it.

from bosh-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.