Hello,
I am trying to understand how content-media link is handling HTTP basic authentication when request is made through a browser.
I had developed a custom REST service on the same lines and I'm facing below WARN message when the REST service is accessed through a browser.
WARN http-bio-8080-exec-3 com.emc.documentum.rest.error.RestErrorBuilder - Status: 401, code: E_GENERAL_AUTHENTICATION_ERROR, message: Authentication failed.
org.springframework.security.authentication.InsufficientAuthenticationException: Full authentication is required to access this resource
I know, this error is thrown when authorization header is not set when request is made.
So wondering how to handle this in custom REST code for request made through browser.
Any configuration changes need to be done based on controller name?
Please provide your valuable inputs.
Thanks.
Best Regards,
Shailendra