cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: XMLDBSource and credentials
Date Mon, 12 Jul 2004 12:54:06 GMT
Luigi Bai wrote:

>
> Upayavira wrote:
>
>> Luigi Bai wrote:
>>
>>> I'd like to modify XMLDBSource to allow the URI to override the 
>>> credential information. This would allow different users to access 
>>> collections/resources as themselves in eXist (http://exist.sf.net).
>>>
>>> Any objections?
>>

Nope. Go ahead.

Vadim


>>> My first thought is to allow URIs of the form:
>>>
>>> xmldb:exist://user:pass@host:port/coll/coll/resource.xml
>>>
>> I take it there is no such definition of providing user/pass within 
>> the XMLDB spec?
>>
>> Regards, Upayavira
>>
>
> Authentication is handled by username and password parameters to 
> methods on the org.xmldb.api.base.Database interface. The XMLDB spec 
> is silent about handling userinfo in the URI itself. The 
> org.cocoon...XMLDBSource gets around this by configuring 
> authentication information into the <driver> element, and then passing 
> that through to the relevant interface methods when necessary (see 
> Bugzilla for a recent patch of that behaviour). However, that is 
> static: only one username and password can be configured per protocol 
> scheme (i.e.; xmldb:).
>
> What I'm proposing is effectively allowing just-in-time specification 
> of username and password in <map:generate src="" /> elements.



Mime
View raw message