You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Daniel Hinojosa <dh...@qwest.net> on 2002/03/24 23:43:07 UTC

'Remember Me'

How can I implement a 'Remember Me' checkbox for username, password, on 
my site when I use 'Form-Based' authentication?  If I can't and have to 
use Custom authentication.  How can I program a principal on my site so 
that is can authorize against different services?

Thanks, in advance.

-- 
Daniel Hinojosa
Java & XML: Consultant | Developer | Instructor
P.O. Box 4675
Albuquerque, NM 87196-4675
(505) 363-5832





--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: 'Remember Me'

Posted by Daniel Hinojosa <dh...@qwest.net>.

Morten Bøhmer wrote:

>Two thing for you to check out:
>
>1. Remember me: Use cookies on the users browser to store user-login 
>information. (This can be done in many ways!)
>


>
>
>2. Use SingleSignOn feature in Tomcat to allow users to be recognized through 
>the hole site.
>
>Best Regards
>Morten Bøhmer
>On Sunday 24 March 2002 23:43, you wrote:
>
>>How can I implement a 'Remember Me' checkbox for username, password, on
>>my site when I use 'Form-Based' authentication?  If I can't and have to
>>use Custom authentication.  How can I program a principal on my site so
>>that is can authorize against different services?
>>
>>Thanks, in advance.
>>
>
>--
>To unsubscribe:   <ma...@jakarta.apache.org>
>For additional commands: <ma...@jakarta.apache.org>
>Troubles with the list: <ma...@jakarta.apache.org>
>
>
>
Well, I develop with JBoss which requires that I have a Principal 
available to it.  I guess that means I need to check JBoss on this one. 
 It's a shame there isn't a full standard way to do that across 
implementations.

Thanks again

-- 
Daniel Hinojosa
Java & XML: Consultant | Developer | Instructor
P.O. Box 4675
Albuquerque, NM 87196-4675
(505) 363-5832






--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: 'Remember Me'

Posted by Morten Bøhmer <mb...@online.no>.
Two thing for you to check out:

1. Remember me: Use cookies on the users browser to store user-login 
information. (This can be done in many ways!)

2. Use SingleSignOn feature in Tomcat to allow users to be recognized through 
the hole site.

Best Regards
Morten Bøhmer
On Sunday 24 March 2002 23:43, you wrote:
> How can I implement a 'Remember Me' checkbox for username, password, on
> my site when I use 'Form-Based' authentication?  If I can't and have to
> use Custom authentication.  How can I program a principal on my site so
> that is can authorize against different services?
>
> Thanks, in advance.

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: 'Remember Me'

Posted by Daniel Hinojosa <dh...@qwest.net>.

Ken Martin wrote:

> On Monday, March 25, 2002, at 10:31 AM, Daniel Hinojosa wrote:
>
>> There was a bit more to my question though that you truncated.
>
>
> No offense intended... I answered the part I knew there was a 
> reference for. Reading and writing cookies is one part of your desired 
> process. The rest I've not done. At least that spec show how to get 
> the data into and out of cookies.
>
> Best wishes,
>
> Ken Martin
>
>
> -- 
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
>
>
Sorry about that.  I noticed that I didn't have as much detail to that 
question.

-- 
Daniel Hinojosa
Java & XML: Consultant | Developer | Instructor
P.O. Box 4675
Albuquerque, NM 87196-4675
(505) 363-5832






--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: 'Remember Me'

Posted by Ken Martin <ke...@digitalcyclone.com>.
On Monday, March 25, 2002, at 10:31 AM, Daniel Hinojosa wrote:

> There was a bit more to my question though that you truncated.

No offense intended... I answered the part I knew there was a 
reference for. Reading and writing cookies is one part of your 
desired process. The rest I've not done. At least that spec show 
how to get the data into and out of cookies.

Best wishes,

Ken Martin


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: 'Remember Me'

Posted by Daniel Hinojosa <dh...@qwest.net>.


Ken Martin wrote:

> On Sunday, March 24, 2002, at 04:43 PM, Daniel Hinojosa wrote:
>
>> How can I implement a 'Remember Me' checkbox for username, password, 
>> on my site when I use 'Form-Based' authentication?
>
>
> Write and read cookies.
>
> <http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.Cookie.html# 
>
> _top_>
>
> Ken Martin
>
>
> -- 
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
>
>
There was a bit more to my question though that you truncated. The API 
(2.2+) doesn't tell me about assigning a principal so that I may check 
isUserInRole() etc.  I am talking about custom-authentication to assign 
a principal so that I may check that against that isUserInRole. 
 Obtaining a principal is something I get from using the FORM-based 
authentication, but how do I get that with custom based authentication.

-- 
Daniel Hinojosa
Java & XML: Consultant | Developer | Instructor
P.O. Box 4675
Albuquerque, NM 87196-4675
(505) 363-5832






--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: 'Remember Me'

Posted by Ken Martin <ke...@digitalcyclone.com>.
On Sunday, March 24, 2002, at 04:43 PM, Daniel Hinojosa wrote:

> How can I implement a 'Remember Me' checkbox for username, 
> password, on my site when I use 'Form-Based' authentication?

Write and read cookies.

<http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.Cookie.html#
_top_>

Ken Martin


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>