Finished authorization, refactored specs