def get_token_data(self):
        """ Get token and data from keystone """

        token_data = self._keystone_auth.conn.auth_ref
        token = token_data['auth_token']
        self.set_token(token)

        if self.cache.is_redis_ok():
            try:
                self.cache.set_cache_token(token_data)
            except CacheException:
                self.logger.error('Token not setted in cache.')

        token_data = {
            'expires_at': token_data['expires_at'],
            'token': token
        }

        return token_data
Get token and data from keystone