This approach would work if you want to operate outside the JRun security
mechanisms and programmatically handle all security yourself.  It will not
work if you want to allow JRun to protect your resources (e.g. declarative
security via web.xml)


I think the question is about how to hook into JRun to do this.

Typical scenario:
1)  User completes a registration page, clicks "submit", information is
entered into database, ldap, etc.
2)  In the same request, servlet programmatically calls to JRun to login
user (request.getUserPrincipal() is instantiated)
3)  User can now access resources as an authenticated user.  For example,
use can now access urls protected in web.xml via <security-constraint>
WITHOUT being presented with a login prompt.


I am interested in resolving this question also.  I combed through the docs
and archives and there is nothing on this.  

I do not think JRun provides a means to do this at present.  They would have
said something by now.  I have seen this question asked before.





-----Original Message-----
From: Matt Goss [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 26, 2001 9:31 AM
To: JRun-Talk
Subject: Re: JRun 3.0 programatic login


Budi,
Try writing your own login servlet that accepts a cookie. Then you can set
the cookie on registration.
Matt Goss

Budi Prawira wrote:

> Is it possible to programatically log in a user, without doing
> BASIC/FORM/DIGEST authentication?
> I'm developing a project in which user can register to become a member.
Once
> the user is registered, he is automatically logged in (without having to
> enter his newly created username/password).
> I saw an example of doing this in JPS 1.1 (using J2EE RI), but I use JRun
> 3.0 to develop my project. Can I do it in JRun 3.0.
>
> Anyone?
>
> Budi
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to