Re: [Catalyst] auto re-load of application yaml config file?

2008-07-23 Thread Matt S Trout
On Wed, Jul 23, 2008 at 11:26:18PM +0100, Pedro Melo wrote: > > On Jul 23, 2008, at 4:32 AM, Matt S Trout wrote: > > >On Tue, Jul 22, 2008 at 12:53:10PM +0200, Marc Sebastian Pelzer wrote: > >>Hello, > >> > >>I'm running a Catalyst application under mod_perl and wonder if there > >>is a Plugin av

Re: [Catalyst] Catalyst::Authentication::Credential::LDAP

2008-07-23 Thread Matt S Trout
On Wed, Jul 23, 2008 at 08:29:42AM -0500, Peter Karman wrote: > > > On 07/22/2008 10:37 PM, Matt S Trout wrote: > > On Wed, Jun 25, 2008 at 11:27:13AM -0700, Bruce J Keeler wrote: > >> Also, somewhat apropos, I have a > >> C::A::{Store,Credential}::ActiveDirectory that I based on the LDAP > >>

Re: [Catalyst] Catalyst and Taint?

2008-07-23 Thread Matt S Trout
On Tue, Jul 22, 2008 at 11:45:09PM -0700, Chris Weyl wrote: > On Tue, Jul 22, 2008 at 8:30 PM, Matt S Trout <[EMAIL PROTECTED]> wrote: > > On Mon, Jul 21, 2008 at 10:08:11PM -0700, Chris Weyl wrote: > >> Hey all -- > >> > >> A google of "catalyst taint" turns up this message: > >> > >> http://lists

Re: [Catalyst] Preventing simultaneous logins

2008-07-23 Thread Matt S Trout
On Wed, Jul 23, 2008 at 09:47:57PM +0200, Daniel McBrearty wrote: > I'm using Cat with a pretty standard configuration of : > > Catalyst::Plugin::Authentication > Catalyst::Plugin::Session > Catalyst::Plugin::Session::State::Cookie > Catalyst::Plugin::Session::Store::FastMmap > > to handle login

Re: [Catalyst] auto re-load of application yaml config file?

2008-07-23 Thread Pedro Melo
On Jul 23, 2008, at 4:32 AM, Matt S Trout wrote: On Tue, Jul 22, 2008 at 12:53:10PM +0200, Marc Sebastian Pelzer wrote: Hello, I'm running a Catalyst application under mod_perl and wonder if there is a Plugin available that detects changes on the main application .yml config file and does a a

Re: [Catalyst] Preventing simultaneous logins

2008-07-23 Thread Wade . Stuart
> > It's fairly simple to track user login now. You can have an automatic > ping from the browser to the server that updates the session time. > Just put it in your template wrappers so you have some simple request > (even something like an action that renders an image, and a javascript > timer t

Re: [Catalyst] Preventing simultaneous logins

2008-07-23 Thread Daniel McBrearty
indeed, it is use case dependent. The use case here is a common one, free content, paid content, you don't want users giving their creds to all their friends and using it simultaneously. (It is at best a first order solution, obviously if it becomes obvious that a fair percentage are using the sy

Re: [Catalyst] Preventing simultaneous logins

2008-07-23 Thread Tomas Doran
On 23 Jul 2008, at 21:20, [EMAIL PROTECTED] wrote: This is actually a pretty "hard" problem -- there is no right answer. What if the user clears her browser state while using the site? Leaves the computer and browser on at work then tries to log in at home on a different computer?

Re: [Catalyst] Preventing simultaneous logins

2008-07-23 Thread J. Shirley
On Wed, Jul 23, 2008 at 1:20 PM, <[EMAIL PROTECTED]> wrote: > "Daniel McBrearty" <[EMAIL PROTECTED]> wrote on 07/23/2008 02:47:57 > PM: > >> I'm using Cat with a pretty standard configuration of : >> >> Catalyst::Plugin::Authentication >> Catalyst::Plugin::Session >> Catalyst::Plugin::Session::Sta

[Catalyst] Preventing simultaneous logins

2008-07-23 Thread emarkert
On Wed, Jul 23, 2008 at 09:47:57PM +0200, Daniel McBrearty wrote: >And what happens if they never hit log out? Or if their browser >crashes and then they try and log in again? >If you really need this feature, try it the other way around: if >someone logs in then you invalidate their fir

Re: [Catalyst] Preventing simultaneous logins

2008-07-23 Thread Wade . Stuart
"Daniel McBrearty" <[EMAIL PROTECTED]> wrote on 07/23/2008 02:47:57 PM: > I'm using Cat with a pretty standard configuration of : > > Catalyst::Plugin::Authentication > Catalyst::Plugin::Session > Catalyst::Plugin::Session::State::Cookie > Catalyst::Plugin::Session::Store::FastMmap > > to handle l

Re: [Catalyst] Preventing simultaneous logins

2008-07-23 Thread J. Shirley
On Wed, Jul 23, 2008 at 1:12 PM, Jonathan Rockway <[EMAIL PROTECTED]> wrote: > * On Wed, Jul 23 2008, Daniel McBrearty wrote: >> What I'd like to do is check if this user is already logged in at some >> other computer, and deny access if so. > > I would probably store sessions in the database, and

Re: [Catalyst] Preventing simultaneous logins

2008-07-23 Thread Jonathan Rockway
* On Wed, Jul 23 2008, Daniel McBrearty wrote: > What I'd like to do is check if this user is already logged in at some > other computer, and deny access if so. I would probably store sessions in the database, and then store the session ID in the user table at login time (current_session) or somet

Re: [Catalyst] Catalyst::Authentication::Credential::LDAP

2008-07-23 Thread Wade . Stuart
Bruce J Keeler <[EMAIL PROTECTED]> wrote on 07/23/2008 02:16:16 PM: > Peter Karman wrote: > > On 07/22/2008 10:37 PM, Matt S Trout wrote: > > > >> On Wed, Jun 25, 2008 at 11:27:13AM -0700, Bruce J Keeler wrote: > >> > >>> Also, somewhat apropos, I have a > >>> C::A::{Store,Credential}::ActiveDire

Re: [Catalyst] Preventing simultaneous logins

2008-07-23 Thread Bill Moseley
On Wed, Jul 23, 2008 at 09:47:57PM +0200, Daniel McBrearty wrote: > What I'd like to do is check if this user is already logged in at some > other computer, and deny access if so. I guess that means : > > 1. checking whether there is an existing session associated this username > 2. Being sure tha

[Catalyst] Preventing simultaneous logins

2008-07-23 Thread Daniel McBrearty
I'm using Cat with a pretty standard configuration of : Catalyst::Plugin::Authentication Catalyst::Plugin::Session Catalyst::Plugin::Session::State::Cookie Catalyst::Plugin::Session::Store::FastMmap to handle login and session management. My login code looks like this: my $u = $params->{usernam

Re: [Catalyst] Catalyst::Authentication::Credential::LDAP

2008-07-23 Thread Bruce J Keeler
Peter Karman wrote: On 07/22/2008 10:37 PM, Matt S Trout wrote: On Wed, Jun 25, 2008 at 11:27:13AM -0700, Bruce J Keeler wrote: Also, somewhat apropos, I have a C::A::{Store,Credential}::ActiveDirectory that I based on the LDAP stuff. The LDAP modules didn't work for me because they

Re: [Catalyst] Catalyst::Authentication::Credential::LDAP

2008-07-23 Thread Wade . Stuart
Peter Karman <[EMAIL PROTECTED]> wrote on 07/23/2008 08:29:42 AM: > > > On 07/22/2008 10:37 PM, Matt S Trout wrote: > > On Wed, Jun 25, 2008 at 11:27:13AM -0700, Bruce J Keeler wrote: > >> Also, somewhat apropos, I have a > >> C::A::{Store,Credential}::ActiveDirectory that I based on the LDAP > >

Re: [Catalyst] Catalyst::Authentication::Credential::LDAP

2008-07-23 Thread Peter Karman
On 07/22/2008 10:37 PM, Matt S Trout wrote: > On Wed, Jun 25, 2008 at 11:27:13AM -0700, Bruce J Keeler wrote: >> Also, somewhat apropos, I have a >> C::A::{Store,Credential}::ActiveDirectory that I based on the LDAP >> stuff. The LDAP modules didn't work for me because they want to bind >> a

Re: [Catalyst] Catalyst and Taint?

2008-07-23 Thread Chris Weyl
On Tue, Jul 22, 2008 at 8:30 PM, Matt S Trout <[EMAIL PROTECTED]> wrote: > On Mon, Jul 21, 2008 at 10:08:11PM -0700, Chris Weyl wrote: >> Hey all -- >> >> A google of "catalyst taint" turns up this message: >> >> http://lists.scsys.co.uk/pipermail/catalyst/2005-December/004007.html >> >> It doesn't