code: def on_authenticated(self, authorization):
          
  
          # Acquire condition
          self.is_authenticating.acquire()
  
          # Store authorization for future calls
          self.authorization = authorization
  
          print('Authentication successful - authorization: %r' % self.authorization)
  
          # Authentication complete
          self.is_authenticating.notify_all()
          self.is_authenticating.release()
docs: Device authenticated.
  
          :param authorization: Authentication token details
          :type authorization: dict