cancel
Showing results for 
Search instead for 
Did you mean: 

authentication problems 2.0.2

boston
Champ in-the-making
Champ in-the-making
Hi,
I have installed Alfresco server 4.2.e. When connecting from mobile client v. 2.0.1 (iOS) everything is OK. But with mobile client v. 2.0.2 got authentication problem.
How could I fix it?
Thanx!
19 REPLIES 19

gavinc
Champ in-the-making
Champ in-the-making
Sorry to hear that you're having connection issues.

Using a REST client, could you also please try the following URLs: hostSmiley Tongueort/alfresco/service/api/server and also hostSmiley Tongueort/alfresco/cmisatom and post the response you receive.

nishantqwerty
Champ in-the-making
Champ in-the-making
I am facing the same issue.
I tried the URLs listed above but they didn't work as well.
This issue is occuring for Alfresco Servers that have Active Directory integration.

Can you clarify "didn't work" please - it doesn't give us much to go on otherwise.

Thanks,
Mike

gavinc
Champ in-the-making
Champ in-the-making
When you say the URLs don't work do you mean you get a non 200 response?

If you are using Active Directory do you have any URL rewrite rules setup for your environment? Could it be the case that the URLs above are not being handled correctly or are not included in your rules?

As you've seen the app will not work without 200 responses for these URLs, it's how the app now discovers what version the repo is and what URLs to subsequently use to communicate with the repository.

Hope that helps.

Apologies. I was trying the URL in the "Service DOcument" of the mobile client.
i.e. /alfresco/cmisatom

It gives me an authentication error.
Otherwise on the web browser I am getting a similar response as boston.

boston
Champ in-the-making
Champ in-the-making
Hi,
first link displays this:
{
   "data":
   {
      "edition": "Community",
      "version": "4.2.0 (r56674-b4848)",
      "schema": "6033"
   }
}

And another link let me download some .xml file {cmisatom.xml}

**
What is that for?

mikeh
Star Contributor
Star Contributor
The XML file is a good start at least it means the CMIS API endpoint is addressable. If you load the XML file into any text editor, do the URLs match that of the request? For example, if your server is at alfresco.boston.org:8080/alfresco/cmisatom, do the absolute URLs inside the XML file match those exactly?

Thanks,
Mike

gavinc
Champ in-the-making
Champ in-the-making
OK, that sounds correct.

The cmisatom.xml is the reponse to the CMIS discovery URL (/alfresco/cmisatom) it's essentially the entry point to the repository. It provides the URLs the app should use to retrieve folder and document information. The URLs this response returns should match your public facing URLs for your environment i.e. the one configured in the app. If there is a mismatch (normally due to incorrect rewrite rules or missing proxy configuration) the app will not be able to connect.

If this all looks correct then I'm not sure why you're having issues. Would you be able to provide access to your system so I can try with a debugger attached?

boston
Champ in-the-making
Champ in-the-making
I found in .XML file the URLs which I use for connecting from mobile client. Looks like there's no mismatches. By the way, when connecting from mobile client, I use 1) proto - https 2) server - for example, alfresco.boston.org 3) - default "suffix" - /alfresco.
In cmisatom.xml I found https://alfresco.boston.org/alfresco/cmisatom. Maybe I should manually write cmisatom after /aflresco when set up mobile client?