Gh171 ureport auth

Modified PR #177.