cancel
Showing results for 
Search instead for 
Did you mean: 

Authentication Webservice

gustavo
Champ in-the-making
Champ in-the-making
Hello,


When I access the address:
http://localhost:8080/alfresco/api/AuthenticationService?wsdl

It prompted for a username and password, but when I put the default "admin", "admin" does not access, and cancel the following error appears:

<blockcode>
{
    "status" :
  {
    "code" : 401,
    "name" : "Unauthorized",
    "description" : "The request requires HTTP authentication."
  }, 

  "message" : "01140023 Authentication failed for Web Script network", 
  "exception" : "org.springframework.extensions.webscripts.WebScriptException - 01140023 Authentication failed for Web Script network",

  "callstack" :
  [
       ""      ,"org.springframework.extensions.webscripts.WebScriptException: 01140023 Authentication failed for Web Script network"
      ,"org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:345)"
      ,"org.alfresco.rest.api.PublicApiRepositoryContainer.access$101(PublicApiRepositoryContainer.java:26)"
      ,"org.alfresco.rest.api.PublicApiRepositoryContainer$2.doWork(PublicApiRepositoryContainer.java:99)"
      ,"org.alfresco.repo.tenant.TenantUtil.runAsWork(TenantUtil.java:119)"
      ,"org.alfresco.repo.tenant.TenantUtil.runAsTenant(TenantUtil.java:88)"
      ,"org.alfresco.rest.api.PublicApiRepositoryContainer.executeScript(PublicApiRepositoryContainer.java:95)"
      ,"org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)"
      ,"org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)"
      ,"org.alfresco.repo.web.scripts.TenantWebScriptServlet.service(TenantWebScriptServlet.java:74)"
      ,"org.alfresco.rest.api.PublicApiWebScriptServlet.service(PublicApiWebScriptServlet.java:53)"
      ,"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.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:99)"
      ,"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:1023)"
      ,"org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)"
      ,"org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1810)"
      ,"java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)"
      ,"java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)"
      ,"java.lang.Thread.run(Thread.java:724)"

  ],

  "server" : "Community v4.2.0 (r56674-b4848) schema 6.033",
  "time" : "14/02/2014 14:32:33"
}
</blockcode>

I want to know where I adjust / modify this password?

Grateful!
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
The "old" webservices have moved on 4.2. to make way for the public API.   That URL is not correct for 4.2  it should be http://localhost:8080/alfresco/api/AuthenticationService?wsdl

However that does not work ….

bopolissimus
Confirmed Champ
Confirmed Champ
Hi mrogers,

Gustavo asked about:
  http://localhost:8080/alfresco/api/AuthenticationService?wsdl

Your reply has:
  http://localhost:8080/alfresco/api/AuthenticationService?wsdl

The URLs look identical to me. Was this a typo?  If yes, what is the correct URL for 4.2.(e|f)?

thanks,

Gerald Quimpo

bopolissimus
Confirmed Champ
Confirmed Champ