How to ensure incoming request in a spring boot rest API is coming from mulesoft?

122 Views Asked by At

I have a spring boot rest API The requirement is that the incoming request should come from mulesoft and no other client. What is the best way to validate this ?

1

There are 1 best solutions below

0
aled On

I think that you really need is to have the client application to authenticate itself to the Spring Boot application. You should really use a standard HTTP authentication method, supported by all parties, like HTTP Basic authentication or OAuth 2. Don't try to create some custom authentication method. That will create an unmaintainable mess.