Skip to content

Commit

Permalink
Switch to PATs as recommended auth option
Browse files Browse the repository at this point in the history
  • Loading branch information
willsmythe committed Feb 8, 2017
1 parent e2e91ff commit bc42d42
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
*.zip
debug.log
.editorconfig
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand All @@ -20,22 +20,22 @@ 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**
1. Give the app a name.
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

4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"singleInstall": true,
"private": true,
"frameworkVersion": "1.0",
"version": "0.4.6",
"version": "0.5.0",
"parameters": [
{
"name": "vso_account",
Expand Down
4 changes: 2 additions & 2 deletions translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit bc42d42

Please sign in to comment.