Re: Has anyone written authentication for Araneida?
- From: "R. Mattes" <ralf@xxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 18 Mar 2006 17:18:53 +0100
On Sat, 18 Mar 2006 04:51:42 -0800, Jonathon McKitrick wrote:
Thomas F. Burdick wrote:
What do you mean by "basic login/logout" and where do you want to get
the authorization information from? Araneida has two methods,
AUTHENTICATE-REQUEST and AUTHORIZE-REQUEST (iirc), for doing
Username and password are in a database table. I want to have a login
page with a form that will request both, and then allow/deny access to
an admin directory. Nothing fancy.
The problem is I am having terrible caching issues that would be a huge
nightmare from a security standpoint. I was hoping maybe an already
existing implementation would have dealt with these issues correctly,
since I cannot seem to find the solution myself.
Somehow you didn't answer Thomas' question. Where do you want to _store_
the authentication state? In a cookie? Authentication with a login page
(which i personally consider stupid -- there's HTTP basic auth) needs
state/sessions. With cookies it's pretty simple: do a
(defmethod handle-request-response :before
((handler your-cool-protected-handler) method request)
....)
Unless there's a cookie you can redirect to the login page.
Iff there's a cookie, check it against the database.
HTH Ralf Mattes
.
- Follow-Ups:
- Re: Has anyone written authentication for Araneida?
- From: Kaz Kylheku
- Re: Has anyone written authentication for Araneida?
- From: Jonathon McKitrick
- Re: Has anyone written authentication for Araneida?
- References:
- Has anyone written authentication for Araneida?
- From: Jonathon McKitrick
- Re: Has anyone written authentication for Araneida?
- From: Thomas F. Burdick
- Re: Has anyone written authentication for Araneida?
- From: Jonathon McKitrick
- Has anyone written authentication for Araneida?
- Prev by Date: Re: dereference (or eval ?) a "nested" symbol
- Next by Date: Re: sequence iteration
- Previous by thread: Re: Has anyone written authentication for Araneida?
- Next by thread: Re: Has anyone written authentication for Araneida?
- Index(es):
Relevant Pages
|