I'm writing a rails web service and i would like to use authlogic for authentication, since this seems to be one of the most used and active authentication gem. Our clients should be abled to authenticate with their user credentials, so i deciced to use http basic auth (authenticate_or_request_with_http_basic) with ssl.
I would like to add some more security by replacing the original password for authentication by a hash of password, url and request time to ensure that a request can be used only in a short time window. Since webservice and client time are not synchronized, i have to send the client time besides the login credentials. How can i add the client date to the authentication header and read it using the authenticate_or_request_with_http_basic method?