There are already several SSO modules for Nuxeo, available in http://svn.nuxeo.org/trac/nuxeo/browser/nuxeo-addons
:
nuxeo-platform-login-cas2
nuxeo-platform-login-mod_sso
nuxeo-platform-login-portal-sso
To customize the look and feel, use the themeing engine. Just change
the theme and replace the Nuxeo logo at the upper left with an HTML
fragment that includes yours. Or if it's enough, change the default
domain or workspaces root and upload a file that's your logo (it has
to be the same size as the default one if you use that method).
Florent
On 23 Jan 2008, at 15:21, Sandor Nyerges wrote:
Dhaneskar, thanks for your suggestion. It worked.
Here are my experiences so far.
Surely, I'm not the only one who wants to customize the code. We
need to embed the Nuxeo application into our enterprise portal
because our customers are asking for content management capability
on it, and we identified Nuxeo EP as a good candidate. However, we
want to change the way users log in. Specifically, as our users log
on to our portal, they enter their name and password, and then if
they click on a link that brings up content management (now Nuxeo)
we don't want to force them to enter their authentication
information again. So, that's the "Single Sign on" issue.
Another issue is putting our company logo on some of the pages to
let our users know that they are still within our portal.
To achieve these goals we need to reach into the source code. To so
that, I wanted as a first step to stand up the whole Nuxeo web app
from source code. Now, not being familiar with the application,this
step took a long time. If anybody out there wants to get to the same
starting point, they can take a look at what worked for me, what did
not work, and not waste time.
In return, I would really appreciate if someone from the nuxeo guys
would point me in the right direction to get the two issues alluded
to earlier, so I can proceed in a productive fashion and not waste
time (my job depends on it). Thank you.
If you start from scratch:
Install Eclipse, JBoss Eclipse IDE, Ant, AnyEdit, Dictionary
(optional), XDoclet, Subclipse...
Install Maven. Make sure the "settings.xml" file for Maven is in "~
\.m2" which Maven will create in the default user home, (windows:
\Documents and Settings\currentuser\My Documents).
In Eclipse, create a new project and using its Subclipse plugin
checkout the source code from http://svn.nuxeo.org/nuxeo/org.nuxeo.ecm.platform/trunk
Go to Maven\bin\mvn.bat and add SET MAVEN_OPTS="-Xmx128m" before the
line %MAVEN_JAVA_EXE%... to increase the size of memory for the JVM
Maven creates. Otherwise it will run out of memory.
Install a new binary distribution at drive root, no spaces in path,
e.g. E:\nuxeo-5.1.2.GA even though the installer suggests C:\Program
Files\...
Otherwise you get this later on when you run run.bat: ERROR STDERR
java.net.URISyntaxException: Illegal character in path at index 16:
file:/C:/Program Files/nuxeo-5.1.2.GA/server/default/deploy/
nuxeo.ear/system/nuxeo-runtime-osgi-1.5-SNAPSHOT.jar
All this is neccessary because the default nuxeo jboss server is
best use. The default JBoss server has problems at deployment time.
Execute run.bat to start server, go to http://localhost:8080/nuxeo
and confirm website is up, then stop server (close dos window)
Move nuxeo.ear to a backup folder (like nuxeo-5.1.2-GA\backups. This
can always be used to restore the site in case of a screw-up)
Edit build.properties and build.xml to point to new install:
jboss.dir=C:
nuxeo-5.1.2.GA and <property name="jboss.dir" value="C:
nuxeo-5.1.2.GA" /> (don't forget the double backslashes and to save
files)
In project folder: ant patch, ant deploy. this will generate a new
nuxeo.ear in server\default\deploy
Execute run.bat in server bin. this will generate the nuxeo.war file
in the ear and bind everything.
Go to http://localhost:8080/nuxeo and confirm website is up. This is
now from source code. Ready to hack.
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
--
Florent Guillaume, Director of R&D, Nuxeo
Open Source Enterprise Content Management (ECM)
http://www.nuxeo.com http://www.nuxeo.org +33 1 40 33 79 87
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm