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

CLI version 6.16 ssh-code command returns oauth-token instead of ssh code #780

Closed
selzoc opened this issue Feb 25, 2016 · 3 comments
Closed

Comments

@selzoc
Copy link
Member

selzoc commented Feb 25, 2016

Expected behavior:

> cf ssh-code
vVVMWl

Observed behavior:

> cf ssh-code
bearer [REDACTED]

This behavior appears to be related to this refactoring: eaae429

It looks like ssh-code command returns the direct result of the authRepo.RefreshAuthToken() call instead of doing further processing to exchange that for a one-time ssh code.

I have verified that this works as expected with version 6.15.

Command

cf ssh-code

CLI Version

6.16.0+ee4d916-2016-02-24

Error

Returns oauth-token instead of ssh code

Stack Trace

CC API Version

v228

CF Trace

For bugs related to HTTP requests, please run the command with env var CF_TRACE=true

Platform Details

Mac OS X 10.11.3

Shell

Terminal (bash)

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/114505405.

@krishicks
Copy link
Contributor

Yikes.

Thanks for the catch! We'll be releasing a patch release soon.

@dkoper
Copy link

dkoper commented Feb 27, 2016

This has been fixed in cf CLI v6.16.1.
https://github.com/cloudfoundry/cli#downloads

Thanks again!
Dies Koper
CF CLI PM

@dkoper dkoper closed this as completed Feb 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants