fix authentication on every request for the case when there is ticket parameter in the url