Skip to content

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

@selzoc

Description

@selzoc

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions