fixed api authorization, fixes prymitive/upaas#54