def get_auth_url(self, user):
        query_id = hexlify(os.urandom(10))
        time_now = int(time())
        raw = '%s.%s.%s' % (user.participant.id, time_now, self.api_secret)
        h = hashlib.md5(raw).hexdigest()
        token = '%s.%s.%s' % (user.participant.id, time_now, h)
        params = dict(
            redirect_url=self.callback_url+'?query_id='+query_id,
            external_access_token=token
        )
        url = self.auth_url+'/auth/gratipay/confirm?'+urlencode(params)
        return url, query_id, ''
dataset/ETHPy150Open gratipay/gratipay.com/gratipay/elsewhere/bountysource.py/Bountysource.get_auth_url/original