Hi all,

for all who would like to access the slide token in the child store, you
just have to overwrite the 'public void connect(SlideToken token) throws
ServiceConnectionFailedException' method in the child store. Additionally
(as I wrote yesterday), we extended the CredentialsToken (which is contained
by the SlideToken) with a getPrincipal() method. Now it is possible to
access the Principal object in the child stores and use the users userid and
password (the user typed in at the Tomcat auhthentication) for connecting
the stores as well. Because of the default Principal just contains the user
name you have to extend the Principal, if you need the password and/or
domain information as well.

regards Eckehard


-----Original Message-----
From: Hermann, Eckehard [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 3:09 PM
To: 'Slide Users Mailing List'
Subject: RE: Pass Principal through to the store


it is committed

regards Eckehard

-----Original Message-----
From: Jingmei Li [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 2:38 PM
To: 'Slide Users Mailing List'
Subject: RE: Pass Principal through to the store


Just a side note: I had to add getPrincipal() to CredentialsToken too, so
it's probably a good idea to have this change committed to the source.

-----Original Message-----
From: Hermann, Eckehard [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 3:48 AM
To: '[EMAIL PROTECTED]'
Subject: Pass Principal through to the store


Hi all,

I have the following problem. I enabled authentication at my slide webdav
server. Now the user has to authenticate himself with userid and password.
After authentication the Tomcat Realm creates an java.security.Principal
object. This object is passed throught to the Http Methods and is also
contained in the slide token. Because I need the userid, domain and password
information of the authenticated user for doing my connects to the database
in the stores, I extended the CredentialsToken class with a Principal field
and a getPrincipal() method. For having the slideToken containing the
CredentailsToken and the Principal in the store I would like to change the
connect() method of the AbstractServiceBase class from connect() to
connect(SlideToken) token and implement the currently abstract method as
follows:

   public void connect(SlideToken token)
        throws ServiceConnectionFailedException {
        connect();
   }

Additionaly all invokations of the connect method have to be changed.

In this case the current store implementations have not to be changed and we
can overwrite the connect method in our store. 

Any better ideas?

regards
Eckehard


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to