From bc42d42f8c366e4545599e3b05fecee0edcbd07a Mon Sep 17 00:00:00 2001 From: Will Smythe Date: Wed, 8 Feb 2017 10:10:22 -0500 Subject: [PATCH] Switch to PATs as recommended auth option --- .gitignore | 2 ++ README.md | 8 ++++---- app.js | 4 ++-- manifest.json | 2 +- translations/en.json | 4 ++-- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index c4c4ffc..49f5d43 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ *.zip +debug.log +.editorconfig diff --git a/README.md b/README.md index a315a88..b4b72c2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Visual Studio Team Services App for Zendesk -> Get the latest version of the app: [Download v0.4.6](https://github.com/Microsoft/vsts-zendesk-app/releases/download/v0.4.6/vsts-zendesk-app-0.4.6.zip) +> Get the latest version of the app: [Download v0.5.0](https://github.com/Microsoft/vsts-zendesk-app/releases/download/v0.5.0/vsts-zendesk-app-0.5.0.zip) Unite your customer support and development teams. Quickly create or link work items to tickets, enable efficient two-way communication, and stop using email to check status. @@ -20,7 +20,7 @@ Give your customer support team easy access to the information they need. See de ### Install the app to Zendesk -1. Download the latest release .zip file: **[version 0.4.6](https://github.com/Microsoft/vsts-zendesk-app/releases/download/v0.4.6/vsts-zendesk-app-0.4.6.zip)** +1. Download the latest release .zip file: **[version 0.5.0](https://github.com/Microsoft/vsts-zendesk-app/releases/download/v0.5.0/vsts-zendesk-app-0.5.0.zip)** 1. From Zendesk, click the settings icon (gear) 1. Under **Apps** click Manage. 1. Click **Upload private app** @@ -28,14 +28,14 @@ Give your customer support team easy access to the information they need. See de 1. Browse to the location you saved the .zip release and select it. 1. Provide your Visual Studio Team Services name and decide on a work item tag for Zendesk. -See [full instructions](https://www.visualstudio.com/get-started/zendesk-and-vso-vs) +See [full instructions](https://www.visualstudio.com/docs/marketplace/integrate/service-hooks/services/zendesk) ### Send updates from Visual Studio Team Services to Zendesk 1. Open the admin page for the team project in Visual Studio Team Services 2. On the *Service Hooks* tab, run the subscription wizard 3. Select Zendesk from the subscription wizard -4. Pick and the Visual Studio Online event which will post to Zendesk +4. Pick and the Visual Studio Team Services event which will post to Zendesk 5. Tell Zendesk what to do when the event occurs 6. Test the service hook subscription and finish the wizard diff --git a/app.js b/app.js index f8b6922..59d7bfb 100644 --- a/app.js +++ b/app.js @@ -806,7 +806,7 @@ var vso_username = this.$('.vso_username').val(); var vso_password = this.$('.vso_password').val(); - if (!vso_username || !vso_password) { + if (!vso_password) { this.$(".login-form").find('.errors').text(this.I18n.t("login.errRequiredFields")).show(); return; } @@ -956,7 +956,7 @@ authString: function (vso_username, vso_password) { - if (vso_username && vso_password) { + if (vso_password) { var b64 = Base64.encode([vso_username, vso_password].join(':')); this.store('auth_token_for_' + this.setting('vso_account'), b64); } diff --git a/manifest.json b/manifest.json index 345efaa..9f086f5 100644 --- a/manifest.json +++ b/manifest.json @@ -10,7 +10,7 @@ "singleInstall": true, "private": true, "frameworkVersion": "1.0", - "version": "0.4.6", + "version": "0.5.0", "parameters": [ { "name": "vso_account", diff --git a/translations/en.json b/translations/en.json index 4adf48a..3e09157 100644 --- a/translations/en.json +++ b/translations/en.json @@ -31,11 +31,11 @@ }, "login": { "title": "Login", - "help": "Set your Visual Studio Team Services alternate credentials.", + "help": "Provide your Team Services credentials. To use a Personal Access Token (recommended), leave the Username field blank and supply your token in the Password field. The token needs at least the \"Work Item (read and write)\" scope.", "username": "Username", "password": "Password", "button": "Login", - "errRequiredFields": "Both username and password fields are required" + "errRequiredFields": "A password is required" }, "workItems": { "unlink": "Unlink this work item",