6 Mar 2007 04:53
Araneida: request-authorized-p (implementation of generic function to yield authorization status)
Joubert Nel <joubert <at> joubster.com>
2007-03-06 03:53:50 GMT
2007-03-06 03:53:50 GMT
Hi, I'm trying to create an authorization scheme in Araneida. Basically whenever a location in my URL space is called I want to check whether the user is authorized and redirect to a login page if he isn't. I found this post on usenet: http://groups.google.com/group/comp.lang.lisp/browse_thread/thread/a6990567666934d2/12bca167849b64e9?lnk=gst&q=request-authorized-p&rnum=1&hl=en&fwc=2 According to this post, the generic function "request-authorized-p" is called for every request to determine whether a client is authorized. To test this, I've got: ============= snip ================== (defclass root-page-handler (araneida:handler) ()) (defmethod request-authorized-p ((araneida:handler root-page-handler) method request) (format t "not authorized")) (defmethod request-not-authorized ((araneida:handler root-page-handler) method request) (araneida:request-redirect request *login-urlstring*)) (defmethod handle-request-response ((araneida:handler root-page-handler) method request) (araneida:request-send-headers request) (araneida:html-stream(Continue reading)
We wondering what tools do many lisp developers, use that support
Versign SSL, and other
technologies for commercial use.
RSS Feed