Adding simple token based autentication to the rest api