creating a basic authentication for aem service for different non aem server for post call (aem6.5)
Hi ,
Non AEM host server need to upload an image to AEM publish server .
AEM is exposing an service say www.abc.com/upload.json ,when Non AEM host serve hit this service ,in aem it will hit the servlet and we can upload the image.
But we would to restrict this based on some particular user . So how to achieve it using basic authentication .
Here we would need to provide userid and password to the non aem server request. How could they send that data to in post request.
But in aem how will it be validated if the correct user is accessing it .What is procedure or sample code for it.
Also could we achieve auth (bearer token) with the above mechanism in AEM
Any inputs on this will be helpful.
Thanks