From dd472639c40aa864bdaeee6a12e2212999f336e1 Mon Sep 17 00:00:00 2001 From: Xiwen Cheng Date: Wed, 13 Sep 2017 19:11:41 +0200 Subject: [PATCH] Authentication token is now simply the internal CF app ID to simplify the cfcli plugin code --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index ed58361..977f250 100644 --- a/main.go +++ b/main.go @@ -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 @@ -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 }