restful service basic authentication