0

I am looking for a secured communication between my AngularJs client and PHP REST API. The communication should be highly secured to match the enterprise standards.

Could you please direct me to the right website? I am even ready to buy a premium code/script

Thanks

1 Answer 1

1

You can implement it to use a JWT token for secure communications. On authentication, a token will be generated and issued to the client. This will be sent every time with HTTP requests to the Web API. The API can then authenticate the request based on the token. Please visit JWT Tokens website. You will get samples on how to implement it on bot client and server. It also has some libraries which will help you with the integration on the server side.

Sign up to request clarification or add additional context in comments.

4 Comments

Whenever there is a AJAX call to the API, the payload is fully visible in the console. Is there a way to hide what is being sent to the API and what received?
@VinodNadar Why do you need to hide the payload? The console is a part of the browser. Browser always knows what is being sent and received. I really don't understand what exactly you are trying to achieve to hide the payload?
I am worried because if someone has the payload format and the token from the server, he can easily hit my API using Postman and make any changes to the data which he is not supposed to. He can even access the data that he should not be accessing
@VinodNadar How and why would anyone have access to your server? In worst case, if anyone gets access to the server, dont you think they can already do anything on the server. They wont bother to look at the client side.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.