def _initalize_tokens()

in utils/wheel_feeder.py [0:0]


    def _initalize_tokens(self):
        """
        Calls Cognito to initialize Credentials.
        There is no easy way yet to authenticate a user against a Cognito User Pool in Boto3.
        Hence we are using a library that makes it easy:
          - https://github.com/capless/warrant/tree/master/warrant
        """
        self._cognito_user_obj = Cognito(
            self._cognito_user_pool_id,
            self._cognito_client_id,
            username=self._username,
            user_pool_region=self.region_name
        )

        try:
            self._cognito_user_obj.authenticate(password=self._password)
        except Exception as e:
            print('Authentication Failed. Please try again. Error message:')
            print(f'{str(e)}')
            exit(1)