finish basic auth