cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Access with 2 methods connections. Possible ?

uskiki85
Champ in-the-making
Champ in-the-making
Hi,

I am using Alfresco Community 3.4.D and i would like to know if is possible to have 2 methods connections with different ports.

For example :
First access type : myalfresco:80/share => redirection to my CAS for authentification
Second access type : myalfresco:8080/share => connexion with the Alfresco login page

with an apache in frontend, is-it ok ? (apache configuration ? alfresco configuration ?)

Thks for your help and your answers !

uskiki85
5 REPLIES 5

uskiki85
Champ in-the-making
Champ in-the-making
I have succeed with the explorer but not with the share … Any idea ?

myalfresco:80/share
myalfresco:80/alfresco
=> redirect to CAS => auth => connect to Alfresco OK

myalfresco:8080/alfresco
=>Alfresco login page => auth => connect to Alfresco OK
myalfresco:8080/share
=>Alfresco login page => auth => connect to Alfresco KO
ERROR : HTTP 500 …. Unable to retrieve user from repository…

My alfresco configuration :
share-config-custom.xml


<config evaluator="string-compare" condition="Remote">
     <remote>
        <endpoint>
           <id>alfresco-noauth</id>
           <name>Alfresco - unauthenticated access</name>
           <description>Access to Alfresco Repository WebScripts that do not require authentication</description>
           <connector-id>alfresco</connector-id>
           <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
           <identity>none</identity>
        </endpoint>

        <connector>
            <id>alfrescoCookie</id>
            <name>Alfresco Connector</name>
            <description>Connects to an Alfresco instance using cookie-based authentication</description>
            <class>org.springframework.extensions.webscripts.connector.AlfrescoConnector</class>
        </connector>

        <endpoint>
            <id>alfresco</id>
            <name>Alfresco - user access</name>
            <description>Access to Alfresco Repository WebScripts that require user authentication</description>
            <connector-id>alfrescoCookie</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/wcs</endpoint-url>
            <identity>user</identity>
            <external-auth>true</external-auth>
        </endpoint>


and when i change endpoint id alfresco by the original,
myalfresco:8080/share OK
myalfresco:80/share KO

<endpoint>
            <id>alfresco</id>
            <name>Alfresco - user access</name>
            <description>Access to Alfresco Repository WebScripts that require user authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <identity>user</identity>
        </endpoint>

The problem seems coming from the endpoint but i don't know what i have to do …

Any ideas ?

uskiki85
Champ in-the-making
Champ in-the-making
no idéas ?

mrogers
Star Contributor
Star Contributor
Why not have one instance of share with an authentication chain?

uskiki85
Champ in-the-making
Champ in-the-making
What do you mean ?

102020
Champ on-the-rise
Champ on-the-rise
have you tried doing a mod_rewrite in a .htaccess file? it could accomplish the same thing without having to modify any property files of alf