angular <-> bwl auth implementation