Ask HN: Is it permitted to proxy HackerNews actions
There are many HackerNews readers/clones out there but they are all read-only.
Would it be permitted to make a HN reader in which the user could enter their HN credentials and if they wanted to upvote a story, the HN reader's server could login for the user, get the link with the auth token, and upvote it for them?
It seems that I am giving the HN reader the rights to act on my behalf so it should be ok - but I didn't see a TOS or anything that referenced it.
(
11 comments
| 4 points
| on HN
)
I'm interested in it for hackernews - but I'm also interested if there are other guidelines/rules/examples for this kind of process in general.
Many HN reader apps implement this as well.
The point is I want to have a different site (eg. myawesomehnsite.com) that will use the firebase api for a reader but allow the user to upvote or comment on my site and proxy that action to news.ycombinator.com. Unless they expose some API to do it, which AFAIK they don't, you don't have a way to do this entirely in the browser. You'll hit cross-site XHR issues or the requests will not be authorized (look at the link for an upvote - it has an auth qs var - this is custom per user per link).
If you want it as a website/in the browser, then you can make an extension instead of an app (going to yoursite.com should request installing extension, or load the site if extension is present).
With a mobile app - it is different I guess in that the credentials are probably staying on the mobile device - they just need to do the proxying on the client - it seems.
I don't have an Iphone to test - if someone has Charles or some other proxy to see where the requests are going, I'd be interested to hear.
For services that don't have something like OAuth to give a token-based credential that is limited in scope/time, the only option is to give full access via username/password. The biggest risk here would be if the other site were to not only spam using the user's account, but hijack it completely changing the password or even the email account. With a token-based authorization, you can always revoke the token and never expose the authentication of the account.
But since the value of a hijacked hackernews account is relatively low, it seems to me people might be more likely to trust such a process (assuming it added value.) If it was malicious, it would be discovered relatively quickly and the ruse would be over, with little to nothing gained for the effort.