add decorator for http basic auth