Generate callback url for provider

def callback(self):
        """ Generate callback url for provider """
        next = request.args.get('next') or None
        endpoint = 'social.{}.handle'.format(self.provider)
        return url_for(endpoint, _external=True, next=next)