You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a string - which would point to a relative or absolute url which must
be mapped indepentently
a (dispatcher . handler) pair - a cons of a dispatcher and a handler,
the dispatcher is automatically wrapped with a detector for a url
that serves the handler
a (dispatcher handler string) list - as for the
dispatcher/handler cons but with the addition of the string to name
the url to login
idea about data/handlers
for login, the processing of the authentication request (the username and password check) is the bit we can specify as part of the auth system
it goes
get a username/password
and possibly other things like “cookie approval”
check against database
plus any other rules, like “cookie approval is yes”
make cookie
redirect to wherever we were supposed to be redirecting
this could have been specified
as a parameteror it could be fixedor looked up in the server side environment
the bit we can’t specify
the look of the login page
or even the url of the login page
or how the login page works
we need to be able to support AJAX login
so you can login from the main page and from non-contextual flows
it’s frustrating because the only thing we care about on the login page is
the login form, which is very specifiable
particularly the url which the form POSTs to
which must have our auth handler on the end of it
so we need a high level abstraction for dealing with this
if we could specify interactive elements, like FORMs as
a description of the data
possibly a template
it should be possible to have a default template
client side template?
the handler code to handle the call
and then have those wrap in the same way as the (dispatcher . handler) form above
reasons this would be good
the separate description of the data means it could be used for ajax and context pages
the template is optional
maybe we could have contextual templates as well
a template for ajax
a template for page
the authentication processor is probably fixed
this could be the tip of a larger abstraction to do better website building
how about we make a function to return a wrap spec?