So I have a web page running a JavaScript application, and a web service that the application makes HTTP PUT requests against. The service uses access tokens to verify the user’s identity, but now I’m scratching my head about how to prevent authorized users from using the API inappropriately. I.e. what’s to stop a malicious user from simply inspecting outgoing traffic in their browser, copying the service url and their access token, and using it to spam calls against the service?
Is there a standard way of preventing this sort of misuse? I thought I’d be able to hide or encrypt the user’s tokens so they can’t see them, but it doesn’t seem like that’s possible.
Cheers!
Continue reading Preventing malicious usage from users with access tokens→