At 02:26 PM 6/6/2001 -0700, J.J. Dukarm wrote:
>I am just now starting to work on equipping my WebKit-based intranet app
>with user logins. My plan is to start with version 0.5.1rc3 and do whatever
>is required to use UserKit like this:
>
>(1) Allow any number of users to log in concurrently, up to some
>configurable maximum (typically 20 or less).
There is no maximum right now. Perhaps UserManager should inherit the
Configurable mix-in to obtain this setting as well as any others (if it
doesn't already).
Don't forget to think about threads so that this works precisely under
heavy load. I'm guessing just a simple Lock is all that's needed.
>(2) Allow a few designated users to log in at any time, regardless of (1).
Sounds useful. User.canAlwaysLogIn()
>(3) Make some use of 'roles' so that some users will have privileges that
>others don't.
>
>I am not up to speed on using CVS, but I will make my solution as generic
>and Webware-friendly as possible (i.e., no hacking of Webware internals, no
>COBOL subroutines) and make it, plus some documentation, available to
>Chuck, if that is OK.
Certainly. You'll definitely want to use the CVS version of UserKit as
there are several enhancements and fixes that you won't want to live
without. CVS instructions are at:
https://sourceforge.net/cvs/?group_id=4866
>One thing that I am worrying about but have not confronted directly yet is
>how to handle ODBC logins. My best guess at the moment is that the 'user'
>owning the app server would have its own login ID and password for ODBC
>purposes, so the app would do all ODBC logins as itself on behalf of the
>app users. I am assuming that each logged-in app user should have a
>separate database connection. I am not using MiddleKit.
That all sounds right. Perhaps you can store the per-user-connection in the
session. I don't know how connections deal with being pickled and unpickled
however. You might have to make some tweaks there.
-Chuck
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-discuss