incorporate auth soln with angular 1.0.7