Expected behavior:
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)