jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Klimetschek" <aklim...@day.com>
Subject Re: Using Spring in an enterprise server environment
Date Thu, 09 Oct 2008 11:06:43 GMT
You need to pass the credentials dynamically, so you probably have to
extend JcrSessionFactory and get the credentials for the session login
from your application (don't know if the standard JcrSessionFactory
has built in other means of specifying the credentials other than
fixed values).

And note that you will need either a custom LoginModule implementation
in Jackrabbit that actually provides the authentication provider (aka
user directory). In the current trunk (and the upcoming 1.5 release)
there is already an implementation of the JSR-283/JCR 2.0 user
management and ACL features.


On Wed, Oct 8, 2008 at 10:23 PM, pkrishna <prabhakar.krishnaswami@ge.com> wrote:
> I am responsible for providing authentication and authorization service for a
> Content Management I am working on. This code will be deployed within the
> Spring framework. The contentRepository.xml has a section like this
>        <bean id="jcrSessionFactory"
>                class="org.springmodules.jcr.JcrSessionFactory">
>                <property name="repository" ref="repository" />
>                <property name="credentials">
>                        <bean class="javax.jcr.SimpleCredentials">
>                                <constructor-arg index="0" value="smith" />
>                                <constructor-arg index="1">
>                                        <bean factory-bean="password"
>                                                factory-method="toCharArray" />
>                                </constructor-arg>
>                        </bean>
>                </property>
>        </bean>
> This works fine but unfortunately, the credentials declared is a fixed set
> like "Smith" for the userName. We need to allow any user to authenticate to
> the repository. In short I want to have varying users authenticate into the
> repository
> --
> View this message in context: http://www.nabble.com/Using-Spring-in-an-enterprise-server-environment-tp19886859p19886859.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Alexander Klimetschek

View raw message