David Mendiola
Pls see this error
{ "status" : { "code" : 401, "name" : "Unauthorized", "description" : "The request requires HTTP authentication." }, "message" : "05280013 Authentication failed for Web Script org\/alfresco\/repository\/dictionary\/classes.get", "exception" : "org.springframework.extensions.webscripts.WebScriptException - 05280013 Authentication failed for Web Script org\/alfresco\/repository\/dictionary\/classes.get", "callstack" : [ "" ,"org.springframework.extensions.webscripts.WebScriptException: 05280013 Authentication failed for Web Script org\/alfresco\/repository\/dictionary\/classes.get" ,"org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:425)" ,"org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:301)" ,"org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)" ,"org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)" ,"org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)" ,"javax.servlet.http.HttpServlet.service(HttpServlet.java:728)" ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)" ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)" ,"org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)" ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)" ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)" ,"org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)" ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)" ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)" ,"org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)" ,"org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)" ,"org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)" ,"org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)" ,"org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)" ,"org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)" ,"org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)" ,"org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)" ,"org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)" ,"org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)" ,"org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)" ,"java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)" ,"java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)" ,"java.lang.Thread.run(Thread.java:748)" ], "server" : "Community v5.1.0 (r122274-b3) schema 9,016", "time" : "Jun 28, 2018 7:00:27 PM" }
When you are already logged in share, and you want to call the alfresco repository webscript and bypass the authentication.In this situation you can use proxy URL.
In your case it will be like below.
http://localhost:8081/share/proxy/alfresco/api/classes?nsp=dg
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.