Added token authentication for REST api