AEM Basic authentication in servlet throws 401
Hello Team
We have an api-account in aem with user name and password.
Configured AEM Sling authentication service for HTTP basic authentication
We have servelts in AEM which will be called by non-aem projects. While calling the servlet, the client sends Bearer token in request header to authenticate.
But when clients calls the request, he receives '401' and no other error/exception message other than 401
I want to know how and where is the authentication happening in AEM.?
And I where can I see complete HTTP request that the client is sending to AEM? Any specific log file in AEM dispatcher? Any logger in AEM instance?( Since it is authentication error client request does not go to servlet to log request details)
Any leads on this would really help. Thank you