Skip to content

Commit

Permalink
Authentication token is now simply the internal CF app ID to simplify…
Browse files Browse the repository at this point in the history
… the cfcli plugin code
  • Loading branch information
Xiwen Cheng committed Sep 13, 2017
1 parent 3035b2b commit dd47263
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (

type VCAP_APPLICATION struct {
ApplicationID string `json:"application_id"`
ApplicationVersion string `json:"application_version"`
}
var appCmd string
var listenOn string
Expand Down Expand Up @@ -120,7 +119,7 @@ func GetLocalToken() string {
if err := json.Unmarshal(data, &vcap); err != nil {
panic(err)
} else {
token := vcap.ApplicationID + "-" + vcap.ApplicationVersion
token := vcap.ApplicationID
log.Println("Authentication token: " + token)
return token
}
Expand Down

0 comments on commit dd47263

Please sign in to comment.