pipedream icon indicating copy to clipboard operation
pipedream copied to clipboard

[IMPROVEMENT] Big Cartel OAuth flow improvement

Open vunguyenhung opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. When I tried to connect Big Cartel account, and observed a popup asking for Account ID FireShot Capture 534 - New Source - Pipedream - pipedream com

Though as an average user, I don't know how to get my Account ID from Big Cartel, and the description is not clearly say how to get one

...just make a request to the Account API /v1/accounts and retrieve the id attribute from the response

To get the Account ID, I need to call API to URL https://api.bigcartel.com/v1/accounts and input Basic Auth information, with the header Accept: application/vnd.api+json image. After inputing the Account ID, then I can continue with the OAuth flow.

This is an implicit knowledge so it's very hard for average user to use

Describe the solution you'd like I would suggest we ask user to input username & password (as we have already done for other apps), then call to URL https://api.bigcartel.com/v1/accounts ourself to get user's Account ID. Then continue with the OAuth flow.

Do you have a workaround? Yes

Comparable features in other tools? I'm not sure about the other tools. Though this improvement will help the component much easier to use

Additional context Component ticket: https://github.com/PipedreamHQ/pipedream/pull/4171

vunguyenhung avatar Sep 08 '22 14:09 vunguyenhung

Thanks for the request! We've added this to our integrations backlog, and we'll update this ticket with progress.

dylburger avatar Sep 08 '22 14:09 dylburger

The account_id was returned as a part of the access token response, which means we don't need to ask the user for it. Since I used the same key name (account_id), this should be backwards-compatible for any users who have already entered the account ID manually.

dylburger avatar Sep 30 '22 01:09 dylburger