cancel
Showing results for 
Search instead for 
Did you mean: 

CMIS 1.1 browser bindings via share proxy

idwright
Star Collaborator
Star Collaborator
This seems like a rather simple question so apologies for asking but I can't find the answer.

I'm wanting to experiment with the CMIS 1.1 browser bindings via client side javascript in Share

For the deprecated CMIS interface the URL is:
Alfresco.constants.PROXY_URI + "cmis/p/…"

Going directly to Alfresco, i.e. not via Share, the URL is:
https://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root/?cmisselector=ch...

Both of these work fine.

The question is how to access CMIS 1.1 via the share proxy?

(I believe the proxy
https://localhost:8444/share/proxy/alfresco/cmis/p/
maps to
https://localhost:8443/alfresco/s/cmis/p/
so the s or service part is different
)
14 REPLIES 14

idwright
Star Collaborator
Star Collaborator
Indeed - it would be great for this to work with SSO - to do this the CMIS endpoint needs to be able to use HttpServletRequest.getRemoteUser()

Cheers,
Ian

Indeed I hit the same issues. It looks like it is going to need some changes before it can work.
1. Unfortunately the Public API does things a little differently as it is on a different endpoint with a different auth pattern.
2. Share/surf does not know how to Share auth between endpoints.

I am going to take a look at 1 & 2 to see what can be done for a Community release solution in the future.

Cheers,

Kevin

kevinr
Star Contributor
Star Contributor
Good news is that I have this working now on a branch. Ability to call Public API from Share and X-Alfresco-Remote-User SSO working against that API route. I will see what can be done about getting this into 5.0.c.

Thanks,

Kevin

kevinr
Star Contributor
Star Contributor
Unfortunately I am unable to get this into 5.0.c as it is already finalised and no more changes are allowed. So it will be in HEAD shortly after that, I'll let you know when there is a build to test.

kevinr
Star Contributor
Star Contributor
Hurrah. At last HEAD is open again and commits are merged, including the ability to call public APIs like CMIS from Share.
http://dev.alfresco.com/downloads/nightly/dist/

Share endpoint looks like this:

         <endpoint>
            <id>alfresco-api</id>
            <parent-id>alfresco</parent-id>
            <name>Alfresco Public API - user access</name>
            <description>Access to Alfresco Repository Public API that require user authentication. This makes use of the authentication that is provided by parent 'alfresco' endpoint.</description>
            <endpoint-url>http://localhost:8080/alfresco/api</endpoint-url>
            <identity>user</identity>
         </endpoint>


Kev