Re: [Rife-users] Using globalvar as session variable declaration

2005-11-15 Thread Emmanuel Okyere
You can also follow this thread:
http://www.uwyn.com/pipermail/rife-users/2005-November/001339.html ,
which details help i've received from Geert on the authentication
module

emmanuel

On 11/15/05, Emmanuel Okyere [EMAIL PROTECTED] wrote:
 What would you call a customized mechanism here?
 The authentication module works beautifully, and allows you to just
 snap it in/out of your app as you please. I will be glad to lead you
 through the authentication module, as you are probably facing the very
 same problems I had when I tried to use it.

 Can you say specifically how you want to achieve authentication.

 Emmanuel

 ps: I am working on a tutorial for it, but it probably won't be ready
 till about the weekend.

 On 11/15/05, Eddy Young [EMAIL PROTECTED] wrote:
  Hi all,
 
  I apologise if this question has been posted before, but I cannot find
  any documentation about globalvar on the website or wiki.
 
  From what I've gathered here and there, it seems that globalvar
  declares what would be the equivalent of a session variable. So, I'm
  thinking of using it as follows for authentication.
 
  Say, I have a member page that requires authentication and have
  declared account as a globalvar.
 
  public class MemberElement extends Element {
 
public void processElement() {
  Template t = getHtmlTemplate(member);
  if (getInput(account) == null) {
call(login);
  }
  print(t);
}
  }
 
  public class LoginElement extends Element {
 
public void processElement() {
  Template t = getHtmlTemplate(login);
  if (hasSubmission(loginSubmission)) {
// perform authentication logic
if (authenticated) {
  setOutput(account, authenticatedAccount);
  answer();
}
  }
}
  }
 
  Is this a good way of handling authentication? Or should I be using
  inheritance? If the latter, how do I proceed? I have some difficulty
  understanding the examples for authentication as those seem memory- or
  database-centric and not applicable for a customised authentication
  mechanism.
 
  Thank you.
 
  Eddy
 
  -
  This mail sent through IMP: http://horde.org/imp/
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] Using globalvar as session variable declaration

2005-11-15 Thread Eddy Young
Quoting Emmanuel Okyere [EMAIL PROTECTED]:

 What would you call a customized mechanism here?
 The authentication module works beautifully, and allows you to just
 snap it in/out of your app as you please. I will be glad to lead you
 through the authentication module, as you are probably facing the very
 same problems I had when I tried to use it.
 
 Can you say specifically how you want to achieve authentication.

Two-factor authentication is one that comes to mind. IIRC, the built-in 
authentication module caters for only a username/password type of 
authentication. Also, what if I don't use XML or a database for storing 
users' details?

The archive contains a number of posts about globalvars and sessions. Can 
we use continuations and globalvars to avoid session variables?

Eddy

-
This mail sent through IMP: http://horde.org/imp/
___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users