Answer the question
In order to leave comments, you need to log in
How to protect REST API from invalid requests?
I have:
Answer the question
In order to leave comments, you need to log in
Everything that is done on the client side can be parsed and secret information can be pulled out. Therefore, any application running on the client side is, by definition, insecure and there is no point in authorizing it. This can be faked.
What you want can only be done with server-side clients.
I think you should rethink your task again. Perhaps it is worth describing the situation in more detail, why you are trying to combine an incompatible, on the one hand, a closed API and, on the other hand, a public mobile application.
It doesn't work like that. There are two options to choose from:
1. Public API -> Public Client (runs on the client).
2. Closed API -> Closed client (runs on the server).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question