Skip to content

Commit 036ce71

Browse files
fix: updating Geckoboard auth (#19610)
* fix: updating geckoboard auth * fix: updating versions * Update components/geckoboard/geckoboard.app.mjs --------- Co-authored-by: michelle0927 <michelle0927@users.noreply.github.com>
1 parent d0c7e7a commit 036ce71

File tree

5 files changed

+14
-9
lines changed

5 files changed

+14
-9
lines changed

components/geckoboard/actions/append-to-dataset/append-to-dataset.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "geckoboard-append-to-dataset",
55
name: "Append to Dataset",
66
description: "Append data to the specified dataset. [See the documentation](https://developer.geckoboard.com/?#append-data-to-a-dataset)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
annotations: {
99
destructiveHint: false,
1010
openWorldHint: true,

components/geckoboard/actions/create-dataset/create-dataset.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "geckoboard-create-dataset",
55
name: "Create Dataset",
66
description: "Create a new dataset. [See the documentation](https://developer.geckoboard.com/?#find-or-create-a-new-dataset)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
annotations: {
99
destructiveHint: true,
1010
openWorldHint: true,

components/geckoboard/actions/delete-dataset/delete-dataset.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "geckoboard-delete-dataset",
55
name: "Delete Dataset",
66
description: "Delete the specified dataset. [See the documentation](https://developer.geckoboard.com/?#delete-a-dataset)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
annotations: {
99
destructiveHint: true,
1010
openWorldHint: true,

components/geckoboard/geckoboard.app.mjs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,21 @@ export default {
3535
const {
3636
$ = this,
3737
path,
38-
auth,
38+
headers = {},
3939
...otherOpts
4040
} = opts;
41+
42+
const token = Buffer
43+
.from(`${this.$auth.api_key}:`)
44+
.toString("base64");
45+
4146
return axios($, {
4247
...otherOpts,
4348
url: this._baseUrl() + path,
44-
auth: {
45-
username: `${this.$auth.api_key}`,
46-
password: "",
47-
...auth,
49+
headers: {
50+
"Authorization": `Basic ${token}`,
51+
"Content-Type": "application/json",
52+
...headers,
4853
},
4954
});
5055
},

components/geckoboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/geckoboard",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Pipedream Geckoboard Components",
55
"main": "geckoboard.app.mjs",
66
"keywords": [

0 commit comments

Comments
 (0)