3 ms·
I think one of the problems with the API token is that it's a lot more cumbersome for the user right now than the old password-based flow. (If you don't happen
by xg15 12y ago
I think one of the problems with the API token is that it's a lot more cumbersome for the user right now than the old password-based flow. (If you don't happen to have your token around or work with it daily)
Right now to connect an API consumer, you have to:
1) Do the things on the consumer's site until you're prompted for the token
2) Open pinboard.in (presumely in a different tab)
3) Login to pinboard
4) Go to "settings"
5) Go to "password"
6) Copy API token
7) Switch back to consumer's site
8) Paste token
Steps 4 and 5 might be more difficult than they look: If people didn't use the token before or never had to change their password, they might not know how to get to settings > password. Or they might not know where to find the token at all.
I think you could make things a lot more convenient if API consumers could put a direct link to https://pinboard.in/settings/password https://pinboard.in/settings/password on their page. That way, the flow would look like this:
1) Do things on the API consumer's site until you're prompted for the token
2) Follow link to token page
3) Login to pinboard
4) Copy API token
5) Switch back to consumer's site (or click "back" twice)
6) Paste token
7) Profit!
Right now, this almost works, except that if you're not already logged into pinboard, the link will just take you back to the front page. So you'd have to change the login prompt so it remembered where you came from. That sounds like a pretty insignificant change, but I think it could make a difference.
- rakoo 12y agoAnd with a little more automation, you can merge steps 4, 5 and 6... and you've now reinvented OAuth 2 :)
- xg15 12y agoWell, the one half of OAuth that's supposed to protect the user, at least. This still wouldn't be near OAuths other design goal, which is to enable API providers to grant and block access to their API individually for each consumer, independent of what their users think. I personally view it as a sign of integrity that this abillity is apparently not a priority for Pinboard to implement.