def on_authenticated(self, authorization):
        """Device authenticated.

        :param authorization: Authentication token details
        :type authorization: dict
        """

        # 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()
def on_authenticated ( self , authorization ) : self . is_authenticating . acquire ( ) self . authorization = authorization print ( 'Authentication successful - authorization: %r' % self . authorization ) self . is_authenticating . notify_all ( ) self . is_authenticating . release ( )
Device authenticated.

        :param authorization: Authentication token details
        :type authorization: dict