When am trying to get a json output from (Alfresco Share) at that time alfresco share is asking login credential and i also given the details but it is not logging in but getting below error

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
karuppasamy
Active Member

When am trying to get a json output from (Alfresco Share) at that time alfresco share is asking login credential and i also given the details but it is not logging in but getting below error

David Mendiola‌ 

Pls see this error

Asking Login Credential and also i given the username and password

{     "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" }
2 Replies
krutik_jayswal
Senior Member II

Re: When am trying to get a json output from (Alfresco Share) at that time alfresco share is asking login credential and i also given the details but it is not logging in but getting below error

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

karuppasamy
Active Member

Re: When am trying to get a json output from (Alfresco Share) at that time alfresco share is asking login credential and i also given the details but it is not logging in but getting below error

@ 

 Sorry am not able to understand your reply.

Pls make me understand.