users@glassfish.java.net

Re: Easiest and most portable way to authenticate programatically.

From: <glassfish_at_javadesktop.org>
Date: Wed, 10 Feb 2010 04:50:33 PST

Perhaps I am misusing the term 'programmatic authentication'. I don't actually intend to write any authentication code like a JAAS realm. I want to gather credentials from my user and pass them to the container. BASIC authentication is very close to what I need, but it's ugly (ex: doesn't match the rest of my application look and feel). I also need a solution that will work with adobe AIR (no browser).

Ryan

> if you enable the security manager and use container
> managed
> authentication, BASIC authentication is for free....
>
> To handle that programatically seems simpler at first
> glance, but soon
> you realize how messy it is...
>
> I strongly suggest you to delegate to Glassfish the
> security part of
> your application....
[Message sent by forum member 'jptech' (ryan_at_jptech.ca)]

http://forums.java.net/jive/thread.jspa?messageID=385869