API: Adds deprecation warning to set_authentication()