Added *somewhat* working local auth.