Added authentication for rest services.