@staticmethod
    def get_csrf_signature(key, token):
        hashed = hmac.new(key, token, _sha)
        return base64.b64encode(hashed.digest())
Check signature
dataset/ETHPy150Open benoitc/dj-webmachine/webmachine/forms.py/OAuthAuthenticationForm.get_csrf_signature