-
Notifications
You must be signed in to change notification settings - Fork 123
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
Express basic auth is broken #395
Comments
Hi, not sure if this is the same issue, but I came across this when looking to enable Basic Auth on a registry: At https://github.com/opentable/oc/blob/master/src/cli/facade/publish.js#L127 , the parameters
and putComponentToRegistry is defined as
and inside
we are checking for username and password, which will never be passed through. Not sure then how the username and password can be used from the CLI |
@debopamsengupta I think that a separate issue. The cli actually tries to make an attempt without credentials, and in case of unauthorised, tries again by providing the credentials. In case of the CLI, it prompts the user asking for the values. You can see that as soon as it has a failing attempt, it retries... |
@matteofigus |
@debopamsengupta you know that you can pass username and password on the cli like oc publish component --username=hello --password=... 👍 |
This was introduced on #366 and is due to the fact express 4 needs a separate module to handle basic auth. Somehow, we didn't catch this in any test.
@federicomaffei is already working on it.
The text was updated successfully, but these errors were encountered: