[albatross-users] trying Login

Michael C. Neel neel at mediapulse.com
Wed Oct 1 00:19:15 EST 2003


Not to send you on yet another exploration of login code methods and
albatross, as it's getting painful to read about at this point *but*;
have you considered sub classing the app class, adding in your login
code, and then creating your app from this new class?  This way the
login code is with the app, so it can know about all pages the app does
but is also separate enough that the real app doesn't have to care about
auth code and it portable to other apps.

This approach may even yeild a login class generic enough that it can be
included in the toolkit at some point, saving others from having to
recreate this wheel.

Mike

> -----Original Message-----
> From: Eric S. Johansson [mailto:esj at harvee.org] 
> Sent: Tuesday, September 30, 2003 10:08 AM
> To: albatross-users
> Subject: [albatross-users] trying Login
> 
> 
> the more I dive into integrating the login code with 
> albatross, the waters 
> become murkier.  On the surface, it should be relatively 
> simple.  I just can't 
> find the way to the solution.
> 
> in implementing the login sequence, I decided to implement it 
> as a separate 
> albatross application.  The reason for this is simple 
> encapsulation.  I don't 
> want anything in the login sequence to become part of the 
> application except for 
> perhaps a small bit of user specific data.  I also want to 
> isolate the 
> application from different types of authentication systems.
> 
> given a simple environment with a generic application and the 
> login application, 
>   control between the two is passed via the method 
> Application.login_validation. 
>   This method is overridden with an actual test for 
> authentication credentials. 
>   If the authentication credentials are not valid, then the 
> login application 
> should start otherwise controls returned to the current application.
> 
> In theory, this should not be a problem.  In practice it is.
> 
> The current problem is transferring control to the login 
> application and 
> returning control.  The current push code only pushes known 
> or registered pages. 
>   The pop code pops to only known or registered pages.  With 
> my current 
> knowledge of albatross, this means that the login code needs 
> to know about every 
> single page that calls it.  This is not a high probability 
> event for a couple 
> reasons.
> 
> so, my question is, how can I do a push/pop sequence to the 
> login code and 
> return the calling application if these two applications are 
> independent.
> 
> 
> _______________________________________________
> Albatross-users mailing list
> Albatross-users at object-craft.com.au
> https://www.object-craft.com.au/cgi-bin/mailman/listinfo/albat
ross-users



More information about the Albatross-users mailing list