Re: Login parameters

2013-07-29 Thread Julian Reschke
On 2013-07-29 11:20, Jukka Zitting wrote: Hi, It would be useful to be able to pass in extra parameters in a Repository.login() call, in order to for example control the auto-refresh or read-only status of the created session. Unfortunately the standard JCR API doesn't provide any straightforwar

Re: Login parameters

2013-07-29 Thread Felix Meschberger
Am 29.07.2013 um 11:58 schrieb Michael Dürig: > > > On 29.7.13 11:20, Jukka Zitting wrote: >> It would be useful to be able to pass in extra parameters in a >> Repository.login() call, in order to for example control the >> auto-refresh or read-only status of the created session. Unfortunately

Re: Login parameters

2013-07-29 Thread Michael Dürig
On 29.7.13 11:20, Jukka Zitting wrote: It would be useful to be able to pass in extra parameters in a Repository.login() call, in order to for example control the auto-refresh or read-only status of the created session. Unfortunately the standard JCR API doesn't provide any straightforward way

Re: Login parameters

2013-07-29 Thread Michael Dürig
Hi, On 29.7.13 11:20, Jukka Zitting wrote: It would be useful to be able to pass in extra parameters in a Repository.login() call, I think we should aim towards 3. making this method part of the JCR spec while at the same time deprecating the other login methods. Their effect could still ea

Re: Login parameters

2013-07-29 Thread Angela Schreiber
hi jukka my preference would be variant 3): - it feels quite natural to me to pass extra information to the repo-login. - jackrabbit api is widely used as JackrabbitSession is needed to obtain the extended security functionality provided by jackrabbit api - having the param-map makes it is easil

Re: Login parameters

2013-07-29 Thread Felix Meschberger
Hi Am 29.07.2013 um 11:20 schrieb Jukka Zitting: > Hi, > > It would be useful to be able to pass in extra parameters in a > Repository.login() call, in order to for example control the > auto-refresh or read-only status of the created session. Unfortunately > the standard JCR API doesn't provide

Re: Login parameters

2013-07-29 Thread Chetan Mehrotra
> 1. Use the attribute feature of SimpleCredentials to pass such parameters +1 to this approach. It is currently also used in Sling to map the authInfo map in ResourceResolverFactory [1]. The data passed is made accessible later via Session.getAttribute [2]. To reduce hard dependency on SimpleCre

Login parameters

2013-07-29 Thread Jukka Zitting
Hi, It would be useful to be able to pass in extra parameters in a Repository.login() call, in order to for example control the auto-refresh or read-only status of the created session. Unfortunately the standard JCR API doesn't provide any straightforward way to do this, so I've come up with a few