code: def authenticate_with_username_password():
      
      credentials = Credentials(username='admin', password='password')
      client = YamcsClient('localhost:8090', credentials=credentials)
  
      for link in client.list_data_links('simulator'):
          print(link)
docs: Authenticate in by directly providing username/password to Yamcs.