auth for angualr request and emit response status to rootscope