Fix auth by user (necessary for usage of API). Lots of problems w/ ssl still.