Restful web application in Java (Security)
We are developing two web applications
I only access application a through my application B, and I don't want any other application to access my application A. for this purpose, I plan to install the client server certificate in the corresponding server so that my application a can only be accessed by my application B, I want to block other applications from accessing my application A. can you tell me how to install the client server certificate in the corresponding server????
If someone has a better alternative to get this, please explain me
If possible, explain with examples
thank you
Solution
Are you looking for authentication and authorization? If so, you can use spring safety If you only look for authentication (root level access) with certain user IDs and passwords, use basic authentication It will check whether the user is valid and can access the web address
Check the URL for code and more information
how to implements Basic Authentication?
How to consuming RESTful webservices with basic authentication?