Add method to authenticate without cli