Protect HTTP Requests with Android

Asked

Viewed 46 times

0

I have an Android application, which requests Servlet or JSP files that return JSON.

For example, in my application the user logs in and can add requests, when adding requests, the same is added via Servlet in JSON format, so he requests an http URL.

I usually pass a key together via POST and in the Servlet file I check if the key is right and allow the request.

I ask: is there a more effective and safe way?

1 answer

-1

There is a better way. Implements JWT https://jwt.io/ on your server. so you send the TOKEN whenever you make a request.

  • Your answer may be better understood if you explain what JWT does so that the questioner can apply what has been suggested.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.